Socket
Socket
Sign inDemoInstall

depdoc

Package Overview
Dependencies
61
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    depdoc

Auto-generate documentation using your package.json's dependencies property


Version published
Maintainers
1
Install size
4.37 MB
Created

Readme

Source

depdoc

Auto-generate documentation using your package.json's dependencies

depdoc simply scans your package.json's dependencies property and returns some simple information about each item. For an example, please see this package's own depdoc.md.

Install

npm install --global depdoc

CLI

Usage: depdoc <filepath> [options]

Options:

  -h, --help      output usage information
  -V, --version   output the version number
  -g, --generate  Generate a markdown file of the result
  -p, --print     Print result to the console
  -c, --copy      Copy result to clipboard

CLI usage:

Print result to the console

depdoc <filepath> -p

depdoc package.json -p
depdoc https://raw.githubusercontent.com/TryKickoff/generator-kickoff/master/package.json -p

Note: files hosted on github.com can also be used

Copy result to your clipboard

depdoc <filepath> -c

depdoc package.json -c
depdoc https://raw.githubusercontent.com/TryKickoff/generator-kickoff/master/package.json -c

Create markdown file of result

Default filename is depdoc.md

depdoc <filepath> -g

depdoc package.json -g dependencies
depdoc https://raw.githubusercontent.com/mrmartineau/depdoc/master/package.json -g dependencies

Non-CLI usage

depdoc can also be used in your node code, but in order for your it to parse your json, you will need to normalise it first, see below for an example from the depdoc demo site.

var depdoc = require('depdoc');
var input = document.querySelector('.packageInput').value;
		var normalisedInput = input.replace(/\r?\n|\s|\r/g,'');

var result = depdoc(input, 'json');

Keywords

FAQs

Last updated on 04 Mar 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc