Skip to content
Find an executable in the $PATH.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
LICENSE
README.md
example.js
package.json

README.md

inpath

build status

Find an executable in the $PATH.

Example

var inpathSync = require('inpath').sync;

var env = inpathSync('env');
console.log(env); // => /usr/bin/env

var none = inpathSync('4A87553D-6BAC-42EE-A699-BAF7830E453A');
console.log(none); // => null

License

MIT

Something went wrong with that request. Please try again.