Save and switch yours npm configurations
npm install npm-configuration-switcher.npmrc at user home level) and switch between them.#Changes
> Fixed linux compatibility
console
$ npm install npm-configuration-switcher -g
` If do not you have permission to install it globally:
`console
$ sudo npm install npm-configuration-switcher -g
`The configuration at the moment of the install will be named
defaultUsage
You can access tool via command line, with ncs$3
`console
$ ncs new
`
> This command does NOT automatically switch to the new configuration
$3
`console
$ ncs current
`
This print the name of the current configuration.
If you want to print the current configuration content use:
`console
$ ncs current --show
`
$3
`console
$ ncs configs
`
This print the list of configurations stored with ncs
$3
`console
$ ncs get
`
This print the content of the configuration corresponding to the given name
$3
`console
$ ncs switch
`
This command change the current configuration with the configuration (previously created with $ ncs new)
corresponding to the given name.
> The previous "current" configuration will be stored as-is so if you changed it by $ npm config set`, changes will be preserved