7.0.3 • Published 1 month ago

@xhmikosr/bin-check v7.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

bin-check CI

Check if a binary is working by checking its exit code

Install

npm install bin-check

Usage

import binCheck from '@xhmikosr/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

7.0.0

1 month ago

7.0.3

1 month ago

7.0.2

1 month ago

7.0.1

1 month ago

6.0.0

11 months ago

5.0.2

11 months ago

5.0.1

11 months ago

5.0.0

11 months ago