Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

npm-bin-path

ragingwind8MIT0.1.2

Get path of npm bin directory for executing locally and globally

npm, npm bin, bin, path

readme

npm-bin-path Build Status

Get path of npm bin directory for executing locally and globally

Install

$ npm install --save npm-bin-path

Usage

const npmBinPath = require('npm-bin-path');

npmBinPath().then(p => {
    //=> ['./node_modules/.bin', '/.nvm/versions/node/v4.1.2/bin']
});

API

npmBinPath()

returns array of npm paths.

License

MIT © ragingwind