Skip to content

Get path of npm bin directory for executing locally and globally

License

Notifications You must be signed in to change notification settings

ragingwind/npm-bin-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Get path of npm bin directory for executing locally and globally

Resources

License

Stars

Watchers

Forks

Packages

No packages published