npm conf:获取npm配置 源码
npm-conf 获取npm配置 安装 $ 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/ 要获取所有可用的npm config选项的列表: $ npm config list --long API npmConf
用户评论