Like the unixwhich utility.
Simply get the first path to a bin on any system.
npminstall @wcjiang/whereis--saveconst whereis=require('@wcjiang/whereis');(async()=>{const where=awaitwhereis('ls');console.log('where:', where);// => /bin/ls})();As always, thanks to our amazing contributors!
Made withaction-contributors.
Licensed under the MIT License.