executable

Check if a file is executable

executable

Check if a file is executable using Node.js

$ npm install --save executable
var executable = require('executable');
 
executable('bash', function (errexec) {
    console.log(exec);
    //=> true 
});
 
executable.sync('bash');
//=> true 
$ npm install --global executable
$ executable --help
 
  Usage
    $ executable <file>
 
  Example
    $ executable optipng

MIT © Kevin Mårtensson