Like the unix which
utility.
Simply get the first path to a bin on any system.
npm install @wcjiang/whereis --save
const whereis = require('@wcjiang/whereis');
(async () => {
const where = await whereis('ls');
console.log('where:', where);
// => /bin/ls
})();
As always, thanks to our amazing contributors!
Made with action-contributors.
Licensed under the MIT License.