Nanoseconds Produce Minutes

    npmls

    3.0.0 • Public • Published

    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

    • 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 or user/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.

    Charlike Make Reagent new message to charlike freenode #charlike

    tunnckocore.tk keybase tunnckocore tunnckoCore npm tunnckoCore twitter tunnckoCore github

    Install

    npm i npmls

    DownloadsWeekly Downloads

    74

    Version

    3.0.0

    License

    MIT

    Last publish

    Collaborators

    • vanchoy
    • tunnckocore