argb
v1.0.0
Published
browserify transform for putting all your args in your bundle's process.argv
Maintainers
Readme
argb
browserify transform to put the process.argv in the process.argv. good for setting environmental variables like port and host, in your client code.
how to use
first install as a local dep
npm install --save argbthen when you build your app, do
browserify entry.js -o public/bundle.js -t argb --host localhost --port 11001in your bundle, be like
var minimist = require('minimist')
var argv = minimist(process.argv)