0.2.3 • Published 5 years ago

npm-configuration-switcher v0.2.3

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

NPM Configuration Switcher image

A simple tool that allows to have multiple configuration of NPM (based on file .npmrc at user home level) and switch between them.

#Changes

Fixed linux compatibility

Install

$ npm install npm-configuration-switcher -g

If do not you have permission to install it globally:

$ sudo npm install npm-configuration-switcher -g

The configuration at the moment of the install will be named default

Usage

You can access tool via command line, with ncs

Create a new configuration

$ ncs new <configuration name>

This command does NOT automatically switch to the new configuration

Get current configuration

$ ncs current

This print the name of the current configuration. If you want to print the current configuration content use:

$ ncs current --show

Get the list of configurations

$ ncs configs

This print the list of configurations stored with ncs

Get the content of a configuration

$ ncs get  <configuration name>

This print the content of the configuration corresponding to the given name

Switch configuration

$ ncs switch  <configuration name>

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

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago