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.
acorn-do-expressions
Advanced tools
Acorn plugin for parsing [do-expressions](https://github.com/tc39/proposal-do-expressions) proposal.
Acorn plugin for parsing do-expressions proposal.
Unstable, as this proposal is still in stage-1, it might get changed.
Also this plugin is a part of my learning process of acorn and parsing js code. So it may not be a recommended way to do the parsing.
This module provides a plugin that can be used to extend the Acorn Parser
class to parse do expressions.
const { Parser } = require('acorn');
const doExpressions = require('acorn-do-expressions');
Parser.extend(doExpressions).parse(
`let x = do {
h1()
};`
);
FAQs
Acorn plugin for parsing [do-expressions](https://github.com/tc39/proposal-do-expressions) proposal.
We found that acorn-do-expressions 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.
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.