@wcjiang/whereis
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

whereis

Buy me a coffee CI npm version Coverage Status

Like the unix which utility.

Simply get the first path to a bin on any system.

Install

npm install @wcjiang/whereis --save

Usage

const whereis = require('@wcjiang/whereis');

(async () => {
  const where = await whereis('ls');
  console.log('where:', where);
  // => /bin/ls
})();

Contributors

As always, thanks to our amazing contributors!

Made with action-contributors.

License

Licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i @wcjiang/whereis

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

3.83 kB

Total Files

4

Last publish

Collaborators

  • wcjiang