
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
jsdoc-docset
Advanced tools
Generate a docSet compatible with the dash app from within a jsDoc template
Helpers to generate a docSet compatible with the dash application from within a jsDoc template. Requires jsDoc v3.4+
The docSet can be created from the jsdoc template publish function.
// ...
var helper = require('jsdoc/util/templateHelper');
var jsdocDocSet = require('jsdoc-docset');
// ...
exports.publish = function(taffyData, opts, tutorials) {
// ... template logic
return jsdocDocSet.createDocSet({
templateHelper: helper,
docletHelper: docletHelper,
opts: opts
});
};
The docletHelper can be either an object with a getCategory method that returns all members generated by jsDoc parser for a specific category. It can also be an instance of a docletHelper as defined in the upcoming new jsdoc template: jsdoc-baseline.
Implementation Example: jsdoc-dash-template
DocSets's TOC are based on a set of entries. This library provides a class to extract them from jsdoc.
var DocSetEntries = require('jsdoc-docset').Entries;
var entries = new DocSetEntries({
templateHelper: templateHelper,
docletHelper: docletHelper
}).getEntries();
If you want to use your docSet within the dash application, you may want to add "dash anchors" to your html documentation to provide a better navigation. Members of the page will be displayed in the left sidebar. The dashAnchor helper can be used from inside your templates to generate those anchors.
FAQs
Generate a docSet compatible with the dash app from within a jsDoc template
We found that jsdoc-docset 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.