Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-dep-info

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-dep-info

Generates a glimpse of descriptions for your dependencies in the package.json

  • 1.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

npm-dep-info

Generates a glimpse of descriptions for your dependencies in the package.json

Install

npm install npm-dep-info -g

Example

Have you ever got confused of what your NPM packages do? Sometimes it just can't be told by their names.

Example taken from exorcist's package.json

{
  "name": "exorcist",
  "dependencies": {
    "minimist": "0.0.5",
    "mold-source-map": "~0.3.0",
    "nave": "~0.5.1"
  },
  "devDependencies": {
    "tap": "~0.4.3",
    "browserify": "~3.20.0",
    "through2": "~0.4.0"
  }
}

With npm-dep-info, you get a nice description of these packages:

{
  "dependencies": {
    "minimist": "parse argument options",
    "mold-source-map": "Mold a source map that is almost perfect for you into one that is.",
    "nave": "Virtual Environments for Node"
  },
  "devDependencies": {
    "tap": "A Test-Anything-Protocol library",
    "browserify": "browser-side require() the node way",
    "through2": "A tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise"
  }
}

It can generate a Markdown file for you, too.

And a table output:

dependencies
┌─────────────────┬───────────────────────────────────────────────────────┐
│ name            │ description                                           │
├─────────────────┼───────────────────────────────────────────────────────┤
│ minimist        │ parse argument options                                │
├─────────────────┼───────────────────────────────────────────────────────┤
│ mold-source-map │ Mold a source map that is almost perfect for you into │
│                 │ one that is.                                          │
├─────────────────┼───────────────────────────────────────────────────────┤
│ nave            │ Virtual Environments for Node                         │
└─────────────────┴───────────────────────────────────────────────────────┘
...

Usage

Usage:
  npm-dep-info [OPTIONS] [ARGS]

Options:
  -M, --markdown         Output as Markdown
  -T, --table            Output as table
  -I, --include STRING   Include extra properties from package.json of the
                         dependency (e.g. --include version,homepage)
  -o, --output PATH      Write output to file
  -i, --input PATH       Location of package.json (default ./)

Output a description from the current directory:

npm-dep-info
npm-dep-info -M # markdown
npm-dep-info -T # table

Output to file:

npm-dep-info -o dependencies.json
npm-dep-info > dependencies.json # pipe

Include extra info

npm-dep-info --include version,homepage # split by ","

Keywords

FAQs

Package last updated on 27 Apr 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc