Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/huanghaiyang/whereissync

Simply get the first path for bin on any system by sync
https://github.com/huanghaiyang/whereissync

lunch nodejs tool

Last synced: 6 days ago
JSON representation

Simply get the first path for bin on any system by sync

Awesome Lists containing this project

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](https://github.com/vvo/node-whereis)
but I removed whereis cmd from it.

## note
you can't use it to find files except ./bin file or .exe file.

## install
```
npm install whereissync --save
```

## how to use
```javascript
var whereis = require('whereis');
var result = whereis('wget');
console.log(result.path);
// /usr/bin/wget
```

## what is the result
An Object contains two property, meta type like:
```javascript
{
err: Object // or Error
path: String // bin path or null
}
```