Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/huanghaiyang/whereissync
- Owner: huanghaiyang
- License: mit
- Created: 2016-08-21T07:52:31.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-22T06:53:51.000Z (about 8 years ago)
- Last Synced: 2024-11-07T13:43:09.885Z (8 days ago)
- Topics: lunch, nodejs, tool
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
}
```