node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

executable

Check if a file is executable

executable

Check if a file is executable

$ npm install --save executable
const executable = require('executable');
 
executable('bash').then(exec => {
    console.log(exec);
    //=> true 
});

Returns a Promise for a boolean.

Returns a boolean of whether the file is executable.

MIT © Kevin Mårtensson