package
Check if a binary is working
npm install bin-checkGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Check if a binary is working by checking its exit code
$ npm install bin-checkconst 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
Estimated unpacked size across 20 packages.
721.8 kB
Includes dependencies.