backoffice/node_modules/executable
root ab9f8bb658 first commit 2020-02-06 10:09:39 +00:00
..
cli.js first commit 2020-02-06 10:09:39 +00:00
index.js first commit 2020-02-06 10:09:39 +00:00
license first commit 2020-02-06 10:09:39 +00:00
package.json first commit 2020-02-06 10:09:39 +00:00
readme.md first commit 2020-02-06 10:09:39 +00:00

readme.md

executable Build Status

Check if a file is executable using Node.js

Install

$ npm install --save executable

Usage

var executable = require('executable');

executable('bash', function (err, exec) {
	console.log(exec);
	//=> true
});

executable.sync('bash');
//=> true

CLI

$ npm install --global executable
$ executable --help

  Usage
    $ executable <file>

  Example
    $ executable optipng

License

MIT © Kevin Mårtensson