Skip to content
Helper for options passing in browserified modules
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md
browserify-getopts.js
package.json

README.md

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

$ node somescript --aflag=data

or in the browser @ http://url.com/?aflag=data

{aflag: 'data'}

Install

$ npm install browserify-getopts
Something went wrong with that request. Please try again.