global-prefix-packages
v0.3.1
Published
Find all globally installed npm packages matching a prefix
Downloads
4
Readme
global-prefix-packages
Find all globally installed npm
modules matching a prefix. Includes support for scoped npm
packages.
Install
Install with npm
$ npm install --save global-prefix-packages
Usage
const globalPrefixPkgs = require('global-prefix-packages');
globalPrefixPkgs('foo-plugin-').then(packages => {
console.log(packages); // ['foo-plugin-bar']
});