Kevin 29b9a0c50c clean && clean html base %!s(int64=4) %!d(string=hai) anos
..
index.js 29b9a0c50c clean && clean html base %!s(int64=4) %!d(string=hai) anos
license 29b9a0c50c clean && clean html base %!s(int64=4) %!d(string=hai) anos
package.json 29b9a0c50c clean && clean html base %!s(int64=4) %!d(string=hai) anos
readme.md 29b9a0c50c clean && clean html base %!s(int64=4) %!d(string=hai) anos

readme.md

bin-check Build Status

Check if a binary is working by checking its exit code

Install

$ npm install bin-check

Usage

const binCheck = require('bin-check');

binCheck('/bin/sh', ['--version']).then(works => {
	console.log(works);
	//=> true
});

API

binCheck(binary, [arguments])

Returns a Promise for a boolean.

binCheck.sync(binary, [arguments])

Returns a boolean.

binary

Type: string

Path to the binary.

arguments

Type: Array
Default: ['--help']

Arguments to run the binary with.

License

MIT © Kevin Mårtensson