3.0.0 • Published 9 years ago

npmls v3.0.0

Weekly downloads
70
License
MIT
Repository
github
Last release
9 years ago

npmls npmjs.com The MIT License

Opinionated npm ls - list globally or locally installed node modules.

code climate standard code style travis build status coverage status dependency status

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, default false
  • [callback] {Function} node-style callback
  • returns {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

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.

Charlike Make Reagent new message to charlike freenode #charlike

tunnckocore.tk keybase tunnckocore tunnckoCore npm tunnckoCore twitter tunnckoCore github