Galerie und tage
This commit is contained in:
26
node_modules/bin-check/readme.md
generated
vendored
26
node_modules/bin-check/readme.md
generated
vendored
@@ -6,16 +6,16 @@
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install bin-check
|
||||
$ npm install --save bin-check
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const binCheck = require('bin-check');
|
||||
var binCheck = require('bin-check');
|
||||
|
||||
binCheck('/bin/sh', ['--version']).then(works => {
|
||||
binCheck('/bin/sh', ['--version'], function (err, works) {
|
||||
console.log(works);
|
||||
//=> true
|
||||
});
|
||||
@@ -24,13 +24,7 @@ binCheck('/bin/sh', ['--version']).then(works => {
|
||||
|
||||
## API
|
||||
|
||||
### binCheck(binary, [arguments])
|
||||
|
||||
Returns a `Promise` for a `boolean`.
|
||||
|
||||
### binCheck.sync(binary, [arguments])
|
||||
|
||||
Returns a `boolean`.
|
||||
### binCheck(binary, command, callback)
|
||||
|
||||
#### binary
|
||||
|
||||
@@ -38,12 +32,18 @@ Type: `string`
|
||||
|
||||
Path to the binary.
|
||||
|
||||
#### arguments
|
||||
#### command
|
||||
|
||||
Type: `Array`<br>
|
||||
Type: `array`
|
||||
Default: `['--help']`
|
||||
|
||||
Arguments to run the binary with.
|
||||
Commands to run the binary with.
|
||||
|
||||
#### callback(err, works)
|
||||
|
||||
Type: `function`
|
||||
|
||||
`works` is a `boolean` which returns `true` if the binary is working correctly.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
Reference in New Issue
Block a user