bin-exists

0.2.1 • Public • Published

bin-exists Build Status Build Status

Check if the binary exists on system

Install

$ npm install --save bin-exists

Usage

const binExists = require('bin-exists');
 
// async
binExists('node').then(val => {
    console.log(val);
    //=> true
});
 
binExists('foo').then(val => {
    console.log(val);
    //=> false
});
 
// sync
console.log(binExists.sync('node'));
//=> true
 
console.log(binExists.sync('foo'));
//=> false

API

binExists(input)

Returns promise for an input value

binExists.sync(input)

Returns boolean for an input value

input

Type: string
Required: true

Input command name

License

MIT © Guntur Poetra

Package Sidebar

Install

npm i bin-exists

Weekly Downloads

181

Version

0.2.1

License

MIT

Last publish

Collaborators

  • guntur