Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
在 node 端使用 babel 运行编译某个文件夹下所有js文件到某个指定文件夹。
在使用 babel 来 Compile Directories 时,可以使用 --out-dir
或者 -d
参数。
例如,我们要编译 src
文件夹下所有的js文件,并输出到 lib
文件夹下,则可以执行:
babel src --out-dir lib
# 或者
babel src -d lib
这是通过 babel-cli
来运行的。如果需要在 node 端调用编译某个文件,可以安装 babel-core
,并使用其提供的 babel.transform
等 api。但是这种方式如果处理某个文件夹下所有的文件的编译,则十分不方便,因此本项目就是为了解决这种场景。
FAQs
compile directories by babel using in node
The npm package babel-d receives a total of 6 weekly downloads. As such, babel-d popularity was classified as not popular.
We found that babel-d 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.