npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

local-or-home-npmrc

1.1.0 • Public • Published

local-or-home-npmrc Build Status

Greenkeeper badge

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 = require('local-or-home-npmrc');
 
console.log(npmrcLocation());
//=> '/Users/svenlito/code/project/.npmrc'
 
// And if there is no local .npmrc file:
 
const npmrcLocation = require('local-or-home-npmrc');
 
console.log(npmrcLocation());
//=> '/Users/svenlito/.npmrc'
 

License

MIT © Sven Lito

install

npm i local-or-home-npmrc

Downloadsweekly downloads

3,406

version

1.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability