Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 897 Bytes

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