0.0.1 • Published 9 years ago

module-bin v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

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.