Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
A table of content JavaScript Library.
npm install --save mokuji.js
import { Mokuji } from 'mokuji.js';
const textElement = document.querySelector('.text');
const mokujiList = Mokuji(textElement);
if (!mokujiList) return;
const listElement = document.querySelector('.list');
listElement?.appendChild(mokujiList);
{
anchorType: true,
anchorLink: false,
anchorLinkSymbol: '#',
anchorLinkPosition: 'before',
anchorLinkClassName: '',
}
anchorType
(default: true
)
Like Wikipedia's anchor, multibyte characters are replaced by escape sequences.
こんにちは
→ .E3.81.93.E3.82.93.E3.81.AB.E3.81.A1.E3.81.AF
anchorLink
(default: false
)
enable/disable the anchor link in the headings
anchorLinkSymbol
(default: '#'
)
set the anchor link symbol
anchorLinkPosition
(default: 'before
)
set position (before/after) the anchor link in headings.
Set the position of the anchor link with 'before' or 'after'.
anchorLinkClassName
(default: ''
)
set anchor link class name.
FAQs
A table of content JavaScript Library
The npm package mokuji.js receives a total of 46 weekly downloads. As such, mokuji.js popularity was classified as not popular.
We found that mokuji.js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.