1.0.1 • Published 8 years ago

whereissync v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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
}