whereis

Which/Whereis easy helper, find if a program exists

node-whereis

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

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