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
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
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