local-or-home-npmrc
Get the local npmrc with fallback to the global one that's in your home directory
Useful in cases where you prefer a local .npmrc file over a global one.
Install
$ npm install --save local-or-home-npmrc
Usage
const npmrcLocation = ; console;//=> '/Users/svenlito/code/project/.npmrc' // And if there is no local .npmrc file: const npmrcLocation = ; console;//=> '/Users/svenlito/.npmrc'
License
MIT © Sven Lito