1.0.1 • Published 10 years ago
npmer v1.0.1
NPMER
Deadly simple npmrc manager
WHY npmrc MANAGER?
Don't ask me. Ask your self.
INSTALLATION
npm install -g npmerUSAGE
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:
.npmrcpath which is taken from$NPM_CONFIG_USERCONFIGand fallback to$HOME/.npmrcif it's not set..npmerdirectory which is taken fromNPMER_DIRand fallback to$HOME/.npmerif 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