Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
jsdoc-class-hierarchy
Advanced tools
JSDoc plugin to add class hierarchy data, and optionally an HTML list representation of the same.
It uses the newDoclet
and processingComplete
events given by JSDoc, and
reads the augments
property in the doclets. This is added when the @extends
tag is used.
Install using npm:
npm install jsdoc-class-hierarchy --save-dev
Add to the plugins in your JSDoc config:
{
"plugins": [
"plugins/markdown",
"node_modules/jsdoc-class-hierarchy"
]
}
Name | Type | Description |
---|---|---|
showList | boolean | Whether or not to show an HTML list of the children classes and hierarchy. Defaults to false . |
If you use the plugin with showList
enabled you automatically get a styled
HTML list in your class description. This is is the easiest way of using the
plugin:
{
"plugins": [
"node_modules/jsdoc-class-hierarchy"
],
"opts": {
"class-hierarchy": {
"showList": true
}
}
}
It will result in something like this:
If you don't like this display you can update your theme to show this data
however you like. Doclets of classes that have subclasses will have a
children
key. All classes that are subclasses of another class will have the
hierarchy
key. Both are arrays of strings, with the class on top of the
hierarchy being the first one.
For example:
doclet.children = [ 'OO.ui.ToolGroup', 'OO.ui.Tool' ];
doclet.hierarchy = [ 'OO.ui.Element', 'OO.ui.Widget' ];
FAQs
JSDoc plugin to add class hierarchy data
The npm package jsdoc-class-hierarchy receives a total of 1,542 weekly downloads. As such, jsdoc-class-hierarchy popularity was classified as popular.
We found that jsdoc-class-hierarchy 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.