
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@denali-js/documenter
Advanced tools
Generate documentation for your JavaScript or Typescript projects!
Includes support for API reference docs generated automatically from code comments, as well as Markdown guides.
Documenter does not generate HTMl or any other kind of rendered output - it only extracts the documentation from your codebase and supplies it in a structured, consistent format for you to render as you wish.
Used by the Denali CLI to generate documentation for Denali projects, but it's not tied to Denali projects only.
You can use the extracter directly:
import { Extracter } from 'documenter';
let extracter = new Extracter({
// The base directory to start everything from
dir: process.cwd(),
// The directory to scan for Markdown files
pagesDir: 'guides',
// An array of glob patterns to search for source files
sourceDirs: [ 'src' ],
// The name of the project
projectName: 'typescript-project',
// The current version of the project
projectVersion: '1.0.0'
});
let docs = extracter.extract();
Or, if you happen to be using Broccoli, you can use the Broccoli plugin:
import { ExtracterTree } from 'documenter';
// inputTree should contain the pages and source you want to extract
// All paths will be relative to the inputTree
let extracter = new ExtracterTree(inputTree, {
// The directory to scan for Markdown files
pagesDir: 'guides',
// An array of glob patterns to search for source files
sourceDirs: [ 'src' ],
// The name of the project
projectName: 'typescript-project',
// The current version of the project
projectVersion: '1.0.0'
});
// The Broccoli plugin will write out the resulting docs data to `docs.json`
// If a `docs.json` exists in the inputTree, it will simply copy that over
// and skip the extraction.
For an example of what the final docs structure looks like, check the test output helper file.
FAQs
Generate docs data from a Javascript or Typescript project
We found that @denali-js/documenter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.