whereissync
v1.0.1
Published
whereis bin path
Downloads
3
Readme
whereisSync
Simply get the first path to a bin on any system by sync
you should know
this project copyed from https://github.com/vvo/node-whereis but I removed whereis cmd from it.
note
you can't use it to find files except binfile or execfile.
install
npm install whereissync --save
how to use
var whereis = require('whereis');
var result = whereis('wget');
console.log(result.path);
// /usr/bin/wget
what is result
A Object contains two property, meta type like:
{
err: Object // or Error
path: String // bin path or null
}