@zkochan/npm-conf
Advanced tools
Comparing version 1.2.4 to 2.0.0
@@ -5,2 +5,3 @@ 'use strict'; | ||
const {ConfigChain} = require('config-chain'); | ||
const envKeyToSetting = require('./envKeyToSetting'); | ||
const util = require('./util'); | ||
@@ -62,7 +63,3 @@ | ||
const p = x.toLowerCase() | ||
.replace(/^npm_config_/, '') | ||
.replace(/(?!^)_/g, '-'); | ||
conf[p] = env[x]; | ||
conf[envKeyToSetting(x.substr(11))] = env[x]; | ||
}); | ||
@@ -69,0 +66,0 @@ |
{ | ||
"name": "@zkochan/npm-conf", | ||
"version": "1.2.4", | ||
"version": "2.0.0", | ||
"description": "Get the npm config", | ||
@@ -8,12 +8,11 @@ "license": "MIT", | ||
"author": { | ||
"name": "Kevin Martensson", | ||
"email": "kevinmartensson@gmail.com", | ||
"url": "github.com/kevva" | ||
"name": "Zoltan Kochan", | ||
"email": "z@kochan.io" | ||
}, | ||
"engines": { | ||
"node": ">=6" | ||
"node": ">=10" | ||
}, | ||
"scripts": { | ||
"prepublish": "node lib/make.js", | ||
"test": "xo && ava" | ||
"test": "jest" | ||
}, | ||
@@ -37,3 +36,2 @@ "files": [ | ||
"devDependencies": { | ||
"ava": "*", | ||
"babel-generator": "^6.24.1", | ||
@@ -43,12 +41,6 @@ "babel-traverse": "^6.24.1", | ||
"eslint-import-resolver-node": "^0.3.2", | ||
"jest": "^25.1.0", | ||
"npm": "^5.0.4", | ||
"pify": "^4.0.1", | ||
"xo": "*" | ||
}, | ||
"xo": { | ||
"ignores": [ | ||
"lib/defaults.js", | ||
"lib/types.js" | ||
] | ||
"pify": "^4.0.1" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# npm-conf [![Build Status](https://travis-ci.org/kevva/npm-conf.svg?branch=master)](https://travis-ci.org/kevva/npm-conf) | ||
# @zkochan/npm-conf [![Build Status](https://travis-ci.com/zkochan/npm-conf.svg?branch=master)](https://travis-ci.com/zkochan/npm-conf) | ||
@@ -9,3 +9,3 @@ > Get the npm config | ||
``` | ||
$ npm install npm-conf | ||
$ pnpm add @zkochan/npm-conf | ||
``` | ||
@@ -17,3 +17,3 @@ | ||
```js | ||
const npmConf = require('npm-conf'); | ||
const npmConf = require('@zkochan/npm-conf'); | ||
@@ -49,2 +49,2 @@ const conf = npmConf(); | ||
MIT © [Kevin Mårtensson](https://github.com/kevva) | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23365
7
11
737