browserify-getopts

0.0.1 • Public • Published

browserify-getopts

Helper for options passing in browserified modules, uses process.argv in Node.js and the query string in the browser.

Example

var opts = require('browserify-getopts');
console.log(opts);
```
 
In Node.js
```` js
$ node somescript --aflag=data
```
or in the browser @ http://url.com/?aflag=data
 
```
{aflag: 'data'}
```
 
## Install
```
$ npm install browserify-getopts
```

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1

Package Sidebar

Install

npm i browserify-getopts

Weekly Downloads

1

Version

0.0.1

License

Apache

Last publish

Collaborators

  • daleharvey