Can you document how to use this?
soichih opened this issue · comments
Soichi Hayashi commented
No documentation / sample on the README..
I tried something like this but didn't work
var which = require('which');
console.log(which.whichSync("git"));
which.which("git", function(err, path) {
console.log(path);
});
Soichi Hayashi commented
Ah.. this worked.
var which = require('which');
which("git", function(err, path) {
console.dir(path);
});
Tim Huff commented
If you want the synchronous version, it's which.sync.