The Wayback Machine - https://web.archive.org/web/20230227000930/https://github.com/amio/nls
Skip to content

amio/nls

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 

nls npm-version install size

Missing inspector for npm packages.

npm install -g nls

nls-screenshot

Usage

nls - Missing inspector for npm packages.

Usage

  $ nls                     List available npm scripts
  $ nls deps                List dependencies table (d for short)
  $ nls view [prop-path]    Extract info from package.json (v for short)
  $ nls read <package-name> Print readme file from a dependency (r for short)
  $ nls why <package-name>  Identify why a package has been installed (w for short)

Options

  -d, --dir       Target directory
  -h, --help      Output usage information
  -v, --version   Output the version number

Examples

  # List npm scripts in current dir
  $ nls

  # List who depend upon package 'chalk'
  $ nls why chalk

  # Print value of "engines.node" from package.json
  $ nls v engines.node

Related

  • yarn-why - Identifies why a package has been installed (with yarn.lock)
  • npm-why - Identifies why a package has been installed (with package-lock.json)

License

MIT @ Amio