New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jsii-docgen

Package Overview
Dependencies
Maintainers
3
Versions
980
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsii-docgen

generates api docs for jsii modules

  • 10.6.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23K
increased by1.55%
Maintainers
3
Weekly downloads
 
Created
Source

jsii-docgen

Generates markdown reference documentation for jsii modules.

Usage

You can use this as a command line tool or as a library if you need more control.

$ jsii-docgen

Will produce a file called API.md with the api reference for this module.

As a library:

import { Documentation, Language } from 'jsii-docgen';

const docs = await Documentation.forProject('.');
const markdown = await docs.toMarkdown({ language: Language.TYPESCRIPT }).render(); // returns a markdown string

const json = await docs.toJson({ language: Language.TYPESCRIPT }).render(); // returns a JSON object

Curreently jsii-docgen supports generating documentation in the following languages:

  • TypeScript (typescript)
  • Python (python)
  • Java (java)
  • C# (csharp)
  • Go (go)

CLI Options

OptionRequiredDescription
--output, -ooptionalOutput filename (defaults to API.md if format is markdown, and API.json if format is JSON).

jsii-docgen -o ./docs/API.md
--format, -foptionalOutput format. Can be markdown or json.

jsii-docgen -f json
--language, -loptionalLanguage to generate documentation for. Can be typescript, python, java, csharp or go.

jsii-docgen -l typescript
--package, -poptionalThe name@version of an NPM package to document.

jsii-docgen -p my-package
--readme, -roptionalGenerate docs for user specified README.md.

jsii-docgen -r
--submodule, -soptionalGenerate docs for a specific submodule or "root".

jsii-docgen -s my-submodule
--split-by-submoduleoptionalGenerate a separate file for each submodule.

jsii-docgen --split-by-submodule

Contributions

All contributions are welcome, just raise an issue or submit a PR. Add a test, update readme. Do the right thing.

License

Apache 2.0

FAQs

Package last updated on 24 Feb 2025

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