To tweak or not to tweak npmrc...
Do not expect to find some kind of gem: this is my first (almost) package, currently cobbled together so I won't forget that it could have been helpful to me ;)
For now npmrc-tweak just do the two things I needed:
- displays the contents of npmrc (userconfig $HOME/.npmrc) in a console
- if necessary, can open npmrc in $EDITOR
Recently npm install behaved differently from how it should do. Long story short, Vasco suggested the possible reason: I had completely forgotten that "a long time ago in a galaxy not so far, far away" I had saved a specific configuration in npmrc.
With no option, npmrc-tweak displays the contents of npmrc (userconfig $HOME/.npmrc).
~ npmrc-tweak --help
Usage: npmrc-tweak [options]
Options:
-h, --help output usage information
-V, --version output the version number
-e, --edit Edit
Maybe someday in the foreseeable future will be a published package, then:
npm install npmrc-tweak
For now clone the repository
git clone https://github.com/max-devjs/npmrc-tweak
cd into the previously cloned repository
cd npmrc-tweak
and finally link it
npm link
Now the npmrc-tweak command must be globally available and, hopefully, working.
I have no idea if it works on Windows: I use it on *nix (probably will work on OSX).
Not using for this project, but code it pays to be read out.
There are no currently tests (well, there is one but it's too ugly).
MIT
- GitHub @max-devjs
- Issues for this package (suggestions & comments are welcome)
- Twitter @max_devjs