npm-cli-path
Resolve the path of npm-cli.js
included in the globally installed npm CLI
const npmCliPath = ; async { const path = ; //=> '/usr/local/lib/node_modules/npm/bin/npm-cli.js'};
Installation
npm install npm-cli-path
API
const npmCliPath = ;
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