1.0.1 • Published 8 years ago

npmer v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

NPMER

Deadly simple npmrc manager

WHY npmrc MANAGER?

Don't ask me. Ask your self.

INSTALLATION

npm install -g npmer

USAGE

npmer [options]

Options:
  --list, -l     list npmrc  [boolean]
  --init, -i     init npmer  [boolean]
  --reset, -r    reset (remove) npmer  [boolean]
  --make, -m     create blank npmrc  [string]
  --del, -d      delete npmrc  [string]
  --use, -u      use npmrc  [string]
  --help, -h     Show help  [boolean]
  --version, -v  Show version number  [boolean]

HOW IT WORKS?

Simple, npmer --init creates $HOME/.npmer dir. Move your .npmrc file to $HOME/.npmer/original. Then, npmer creates this link:

`$HOME/.npmrc` -> `$HOME/.npmer/current` -> `$HOME/.npmer/original`

After that, any file that $HOME/.npmer/current is pointing will be your active .npmrc file.

CONFIGURATIONS?

Only two things can be configured:

  • .npmrc path which is taken from $NPM_CONFIG_USERCONFIG and fallback to $HOME/.npmrc if it's not set.
  • .npmer directory which is taken from NPMER_DIR and fallback to $HOME/.npmer if it's not set.

IMPORTANT

npmer --reset will remove everything inside $HOME/.npmer/original. Your original .npmrc file is stored in $HOME/.npmer/original. As long as it's name is original, everything should be safe. If not, anything with original as it's name will be taken to .npmrc. If there is no original in $HOME/.npmer, I don't know what will happen. But, I'm sure losing .npmrc file will not ruin your life or make you cry.

LICENSE

MIT