inpath

1.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    59,887
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    59,887
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i inpath

Weekly Downloads

29,455

Version

1.0.2

License

none

Last publish

Collaborators

  • calmh