A CLI to manage multiple npmrc files
brew tap RecuencoJones/tap
brew install npmrc
Later you can upgrade with
brew upgrade npmrc
- Download the file for your distribution
- Extract it to get
npmrc
- Make it available in your path
git clone https://github.com/RecuencoJones/npmrc
cd npmrc
go get -t ./...
go install ./...
npmrc <command>
Available commands:
use, u Select a profile
view, v View a profile
list, ls List available profiles
edit, ed Create or update profiles
copy, cp Copy profiles
remove, rm Remove a profile
help, h Display this message
version Display version
Env variable | Default value | Description |
---|---|---|
NPMRC_DIR | ~ |
Directory where profiles will be stored |
EDITOR | vi |
Editor to use for creating/editing profiles |
VIEWER | cat |
Viewer to use for viewing profiles |
- Profile name must not start with
.
- Profile name must not contain spaces
- Profile name must be of at least 1 character length