JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 937
  • Score
    100M100P100Q98919F
  • License ISC

Resolve the path of `npm-cli.js` included in the globally installed npm CLI

Package Exports

  • npm-cli-path

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (npm-cli-path) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm-cli-path

npm version Build Status codecov

Resolve the path of npm-cli.js included in the globally installed npm CLI

const npmCliPath = require('npm-cli-path');

(async () => {
  const path = npmCliPath(); //=> '/usr/local/lib/node_modules/npm/bin/npm-cli.js'
})();

Installation

Use npm.

npm install npm-cli-path

API

const npmCliPath = require('npm-cli-path');

npmCliPath()

Return: Promise<string>

It resolves the path of npm-cli.js which is the entry point of npm CLI.

License

ISC License © 2017 - 2019 Watanabe Shinnosuke