Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A table of content JavaScript Library.
npm install --save mokuji.js
<script src="../dist/mokuji.js"></script>
<script>
var mokuji = new Mokuji.init(document.getElementById('target'));
var list = document.getElementById('list');
list.appendChild(mokuji);
</script>
{
anchorType: true,
anchorLink: false,
anchorLinkSymbol: '#',
anchorLinkBefore: true,
anchorLinkClassName: '',
smoothScroll: true
}
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
anchorLinkBefore
(default: true
)
set position (before/after) the anchor link in headings.
anchorLinkClassName
(default: ''
)
set anchor link class name.
smoothScroll
(default: true
)
enable/disable native smooth scrolling.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.