Simply get the first path to a bin on any system
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json
yarn.lock

README.md

Note from maintainers: Nowadays you should use https://github.com/npm/node-which

node-whereis Version Badge Build Status License Downloads

Simply get the first path to a bin on any system.

var whereis = require('whereis');
whereis('wget', function(err, path) {
  console.log(path);
});
// /usr/bin/wget