|
|
há 5 anos atrás | |
|---|---|---|
| .. | ||
| index.js | há 5 anos atrás | |
| license | há 5 anos atrás | |
| package.json | há 5 anos atrás | |
| readme.md | há 5 anos atrás | |
Check if a binary is working by checking its exit code
$ npm install bin-check
const binCheck = require('bin-check');
binCheck('/bin/sh', ['--version']).then(works => {
console.log(works);
//=> true
});
Returns a Promise for a boolean.
Returns a boolean.
Type: string
Path to the binary.
Type: Array
Default: ['--help']
Arguments to run the binary with.
MIT © Kevin Mårtensson