|
|
5 年之前 | |
|---|---|---|
| .. | ||
| lib | 5 年之前 | |
| node_modules | 5 年之前 | |
| index.js | 5 年之前 | |
| license | 5 年之前 | |
| package.json | 5 年之前 | |
| readme.md | 5 年之前 | |
Get the npm config
$ npm install npm-conf
const npmConf = require('npm-conf');
const conf = npmConf();
conf.get('prefix')
//=> //=> /Users/unicorn/.npm-packages
conf.get('registry')
//=> https://registry.npmjs.org/
To get a list of all available npm config options:
$ npm config list --long
Returns the npm config.
Returns the default npm config.
MIT © Kevin Mårtensson