New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

npmls

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npmls

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

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
175
4.17%
Maintainers
1
Weekly downloads
 
Created
Source

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
  • 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

Keywords

check

FAQs

Package last updated on 07 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts