7.1.6 • Published 12 months ago

@lesjoursfr/bin-check v7.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
12 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.6

12 months ago

7.1.5

1 year ago

7.1.4

2 years ago

7.1.3

2 years ago

7.1.2

2 years ago

7.1.1

2 years ago

7.1.0

2 years ago

7.0.0

2 years ago