Socket
Socket
Sign inDemoInstall

docdep

Package Overview
Dependencies
8
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    docdep

Automagically generate beautiful documentation for your project's dependencies


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

docdep

Generates a documentation file (Markdown or PDF) based on the dependencies of a project (package.json). It pulls relevant information from the NPM registry and optionally translates descriptions using DeepL.

Install

npm install -g docdep

Example

An example output document can be found in DEPENDENCIES.md.

Configuration

While some options can be set via command line arguments, most of the configuration can only be done via a configuration file, which is therefore favored. The configuration file is a JSON file with the following structure:

{
  "input": "./package.json", // Path to the input file (package.json)
  "output": "./DEPENDENCIES.md", // Path to the output file
  "overrideDescriptions": { "uuid": "Generates some juicy UUIDs" }, // Overrides the descriptions of the given packages, optional
  "includeDev": true, // Whether to include devDependencies, optional (default: false)
  "fileFormat": "markdown", // Output file format, optional (default: markdown)
  "language": "de", // Language for descriptions, optional (default: en)
  "deeplApiKey": "secret" // API key for DeepL, required if language is not "en"
}

Usage

If you're using a config file, you only need to provide the path to this file as an argument to the CLI:

docdep -c ./docdep.config.json

For all available command line arguments, see the help page:

docdep --help

FAQs

Last updated on 24 Jun 2023

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