7.1.5 • Published 3 months ago

@lesjoursfr/bin-check v7.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

npm version QC Checks Tests

bin-check

Check if a binary is working by checking its exit code

Install

npm install @lesjoursfr/bin-check

Usage

import binCheck from "@lesjoursfr/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.1.5

3 months ago

7.1.4

4 months ago

7.1.3

5 months ago

7.1.2

5 months ago

7.1.1

7 months ago

7.1.0

8 months ago

7.0.0

9 months ago