Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zkochan/npm-conf

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zkochan/npm-conf - npm Package Compare versions

Comparing version 1.2.4 to 2.0.0

lib/envKeyToSetting.js

7

lib/conf.js

@@ -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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc