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.
@masx200/acorn-parse-escodegen-generate-esm-broweser
Advanced tools
在浏览器中使用 acorn和escodegen 来 进行 javascript 源代码 和 抽象语法树的相互转换的ES模块
可以在浏览器中运行,不需要 nodejs 环境,压缩后体积为 155KB
使用 acorn
和escodegen
来 进行 javascript
源代码 和 抽象语法树
的相互转换的ES
模块,
把escodegen
和estraverse
和esutils
模块都从commonjs
模块改成ES
模块,acorn
使用自带的ES
模块
并且使用rollup
打包,并开启tree-shaking
和使用terser
代码压缩
从 cdn 获取
<script type="module">
import {
parse,
generate,
} from "https://cdn.jsdelivr.net/gh/masx200/acorn-parse-escodegen-generate-esm-broweser@latest/dist/acorn-parse-escodegen-generate.esm.min.js";
</script>
npm install --save https://github.com/masx200/acorn-parse-escodegen-generate-esm-broweser.git
或者
yarn add https://github.com/masx200/acorn-parse-escodegen-generate-esm-broweser.git
import { parse, generate } from "acorn-parse-escodegen-generate-esm-broweser";
var code = "var b=3";
var ast = parse(code);
var text = generate(ast);
A small, fast, JavaScript-based JavaScript parser
https://github.com/acornjs/acorn
https://npm.taobao.org/package/acorn
ECMAScript code generator
FAQs
在浏览器中使用 acorn和escodegen 来 进行 javascript 源代码 和 抽象语法树的相互转换的ES模块
The npm package @masx200/acorn-parse-escodegen-generate-esm-broweser receives a total of 1 weekly downloads. As such, @masx200/acorn-parse-escodegen-generate-esm-broweser popularity was classified as not popular.
We found that @masx200/acorn-parse-escodegen-generate-esm-broweser 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.