Manage your npm files with ease
$ npm install --save chnpm
var chnpm = require('chnpm');
chnpm.current();
//=> 'http://registry.npmjs.org'
$ npm install --global chnpm
Manage your npm files with ease
Usage
$ chnpm [options] [name]
Examples
$ chnpm
Currently on http://registry.npmjs.org
$ chnpm --save npmjs
Config saved to ~/.npmjs.npmrc
$ npm config set registry http://registry.local.org
$ chnpm --save local
Config saved to ~/.local.npmrc
$ chnpm local
Switched to http://registry.local.org
Options
--save NAME Save current configuration to ~/.NAME.npmrc
Returns current registry url.
Saves current config file as ~/.${name}.npmrc
.
Saves ~/.${name}.npmrc
as current config file.
MIT © Vsevolod Strukchinsky