Note from maintainers: Nowadays you should use https://github.com/npm/node-which
node-whereis !Version Badgenpm-version-svgpackage-url !Build Statustravis-svgtravis-url !Licenselicense-imagelicense-url !Downloadsdownloads-imagedownloads-url
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