0.0.1 • Published 11 years ago
browserify-getopts v0.0.1
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
```
0.0.1
11 years ago