node package manager

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 that resolves to a boolean of whether the file is executable.

Returns a boolean of whether the file is executable.

MIT © Kevin Mårtensson