[go: nahoru, domu]

whereissync

1.0.1 • Public • Published

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
}

Readme

Keywords

Package Sidebar

Install

npm i whereissync

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • huanghaiyang