Check if a binary is working
npm install @xhmikosr/bin-check> Check if a binary is working by checking its exit code
``sh`
npm install bin-check
`js
import binCheck from '@xhmikosr/bin-check';
binCheck('/bin/sh', ['--version']).then(works => {
console.log(works);
//=> true
});
`
Returns a Promise for a boolean.
Returns a boolean.
#### binary
Type: string
Path to the binary.
#### arguments
* Type: Array['--help']`
* Default:
Arguments to run the binary with.
MIT © Kevin Mårtensson