find-exec-v12
v0.1.0
Published
Finds first available shell command from a list based on node.js v0.12.x
Downloads
5
Maintainers
Readme
find-exec
Takes a list of shell commands and returns the first available. Works synchronously to respect the order.
Returns null if none of the listed commands were found.
examples
$ which mplayer
which: no mplayer
$ which afplay
/usr/bin/afplayvar command = require('find-exec')(["mplayer", "afplay", "cvlc"])
console.log(command) // afplayvar command = require('find-exec')(["mplayer"])
console.log(command) // nullinstallation
npm install find-execlicense
MIT
