0.2.1 • Published 7 years ago

bin-exists v0.2.1

Weekly downloads
47
License
MIT
Repository
github
Last release
7 years ago

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

0.2.1

7 years ago

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago