Socket
Socket
Sign inDemoInstall

npm-cli-path

Package Overview
Dependencies
4
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.2 to 4.0.0

5

index.js

@@ -11,9 +11,8 @@ 'use strict';

const {promisify} = require('util');
const {realpath} = require('fs');
const {realpath} = require('fs').promises;
const which = require('which');
const promisifiedRealpath = promisify(realpath);
const promisifiedWhich = promisify(which);
const getNpmCliPath = async () => promisifiedRealpath(await promisifiedWhich('npm'));
const getNpmCliPath = async () => realpath(await promisifiedWhich('npm'));

@@ -20,0 +19,0 @@ if (process.platform !== 'win32') {

27

package.json
{
"name": "npm-cli-path",
"version": "3.1.2",
"version": "4.0.0",
"description": "Resolve the path of `npm-cli.js` included in the globally installed npm CLI",
"repository": "shinnn/npm-cli-path",
"author": "Shinnosuke Watanabe (https://github.com/shinnn)",
"author": "Watanabe Shinnosuke (https://github.com/shinnn)",
"license": "ISC",
"scripts": {
"pretest": "eslint .",
"test": "nyc --clean node tests/no-npm.js && nyc node tests/posix.js && npm run-script test-npm-run --silent && nyc report --reporter=html --reporter=text",
"test-npm-run": "nyc node tests/npm-run-script.js"
"test": "c8 --clean node tests/no-npm.js && npm run-script test-npm-run --silent && c8 report --reporter=text",
"test-npm-run": "c8 node tests/npm-run-script.js"
},
"license": "ISC",
"files": [

@@ -38,19 +38,18 @@ "index.js"

"which": "^1.3.1",
"win-user-installed-npm-cli-path": "^3.0.0"
"win-user-installed-npm-cli-path": "^4.0.0"
},
"devDependencies": {
"@shinnn/eslint-config-node": "^6.0.0",
"eslint": "^5.4.0",
"nyc": "^13.0.1",
"pretend-platform": "^2.0.0",
"tape": "^4.9.1"
"@shinnn/eslint-config": "^6.10.4",
"c8": "^5.0.1",
"eslint": "^5.16.0",
"testit": "^3.1.0"
},
"eslintConfig": {
"extends": "@shinnn/node"
"extends": "@shinnn"
},
"nyc": {
"c8": {
"clean": false,
"include": "index.js",
"silent": true
"reporter": "none"
}
}
# npm-cli-path
[![npm version](https://img.shields.io/npm/v/npm-cli-path.svg)](https://www.npmjs.com/package/npm-cli-path)
[![Build Status](https://travis-ci.org/shinnn/npm-cli-path.svg?branch=master)](https://travis-ci.org/shinnn/npm-cli-path)
[![Build status](https://ci.appveyor.com/api/projects/status/8osd3at404d3jrxi/branch/master?svg=true)](https://ci.appveyor.com/project/ShinnosukeWatanabe/npm-cli-path/branch/master)
[![Coverage Status](https://img.shields.io/coveralls/shinnn/npm-cli-path.svg)](https://coveralls.io/github/shinnn/npm-cli-path?branch=master)
[![Build Status](https://travis-ci.com/shinnn/npm-cli-path.svg?branch=master)](https://travis-ci.com/shinnn/npm-cli-path)
[![codecov](https://codecov.io/gh/shinnn/npm-cli-path/branch/master/graph/badge.svg)](https://codecov.io/gh/shinnn/npm-cli-path)

@@ -20,3 +19,3 @@ Resolve the path of [`npm-cli.js`][npm-cli] included in the globally installed [npm](https://www.npmjs.com/) CLI

[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/getting-started/what-is-npm).
[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).

@@ -41,4 +40,4 @@ ```

[ISC License](./LICENSE) © 2017 - 2018 Shinnosuke Watanabe
[ISC License](./LICENSE) © 2017 - 2019 Watanabe Shinnosuke
[npm-cli]: https://github.com/npm/cli/blob/latest/bin/npm-cli.js

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc