module-bin

0.0.1 • Public • Published

module-bin

Resolve required module's bin file.

Install

$ npm install --save module-bin

Usage

var moduleBin = require('module-bin');
 
moduleBin('npm')                  => 'path/to/node_modules/.bin/npm'
moduleBin('cnpm', 'cnpm-search')  => 'path/to/node_modules/.bin/cnpm-search'
moduleBin('no_available_mod')     => Throws
 

License

Copyright (c) 2015 Zhonglei Qiu. Licensed under the MIT license.

Package Sidebar

Install

npm i module-bin

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • qiu8310