
Security News
Open VSX Begins Implementing Pre-Publish Security Checks After Repeated Supply Chain Incidents
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.
@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
The npm package @denali-js/documenter receives a total of 3 weekly downloads. As such, @denali-js/documenter popularity was classified as not popular.
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
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.