npm-installed

Find npm installed programs

Usage no npm install needed!

<script type="module">
  import npmInstalled from 'https://cdn.skypack.dev/npm-installed';
</script>

README

npm-installed Build Status

Find programs installed by npm

Install

$ npm install npm-installed

Usage

const npmInstalled = require('npm-installed');

npmInstalled('imagemin').then(function (path) {
    console.log(path);
    //=> /home/sirjohndoe/.npm-packages/bin/imagemin
});

npmInstalled.sync('imagemin');
//=> /home/sirjohndoe/.npm-packages/bin/imagemin

License

MIT © Kevin Mårtensson