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) {
    if (err) {
        throw err;
    }
    
    console.log(exec);
    // => true 
});
 
executable.sync('bash');
// => true 
$ npm install --global executable
Usage
  $ executable <file>
 
Example
  $ executable optipng

MIT © Kevin Mårtensson