npmls
v3.0.0
Published
Opinionated `npm ls` - list globally or locally installed node modules.
Downloads
2,673
Readme
npmls
Opinionated
npm ls
- list globally or locally installed node modules.
Install
npm i npmls --save
Usage
For more use-cases see the tests
npmls
List installed node modules, globally or locally.
[globally]
{Boolean} list global modules, defaultfalse
[callback]
{Function} node-style callbackreturns
{Array} list of modules if nod callback given
Example
var npmls = require('npmls')
console.log(npmls(true))
//=> [ 'add-package-owners',
// 'apidocs-cli',
// 'bower',
// 'browserify',
// ...
// ]
// or asynchronously
npmls(true, function (err, modules) {
if (err) return console.error(err)
console.log(modules)
//=> [ 'add-package-owners',
// 'apidocs-cli',
// 'bower',
// 'browserify',
// ...
// ]
})
CLI
Just run
npm install -g npmls
to install it globally and try it.
$ npmls -h
Usage: npmls [options]
Example
$ npmls --global
add-package-owners
apidocs-cli
bower
browserify
...
mocha
npm
npm-related
opn-cli
...
Options
-v, --version Shows module version
-g, --global Lists globally installed modules
-h, --help Shows this help
Readme: https://github.com/tunnckoCore/npmls
Related
- apidocs-cli: Command-line app for generating API docs from code comments. Can… more
- detect-installed: Checks that given package name is installed locally or globally.… more
- get-installed-path: Get the installation path of the given package if it… more
- gitclone-cli: Git clone github repository with pattern like
user/repo#branch
- global-modules: The directory used by npm for globally installed npm modules.
- is-installed: Checks that given package is installed on the system -… more
- is-missing: Check that given
name
oruser/repo
exists in npm registry… more
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.