| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Check if a file is executable using Node.js
$ npm install --save executable
var executable = require('executable');
executable('bash', function (err, exec) {
console.log(exec);
//=> true
});
executable.sync('bash');
//=> true$ npm install --global executable
$ executable --help
Usage
$ executable <file>
Example
$ executable optipng
MIT © Kevin Mårtensson
| Back | FazBrowse Home | New Git URL |