
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
npm install enload
For the loaders, peer deps must be installed and you will be informed if they're missing. See loaders for supported loaders.
If you run from the terminal, you get both static and dynamic imports.
node --import=enload/register app.js
import config from "./config.json";
// or (await import("./config.json")).default
If you use programmatically, imports coming after the enload()
invocation
must be dynamic (import()
).
import enload from "enload";
enload();
const config = (await import("./config.json")).default;
This currently applies only programmatically.
You can pass an extensions
object property to remap a given loader to a new
extension. In the following example, the yaml
loader will trigger on .yml
files.
import enload from "enload";
enload({ extensions: { yaml: ".yml" } });
const config = (await import("./config.yml")).default;
Name | Extension | Dependency |
---|---|---|
csv | .csv | csv-parse |
json | .json | |
json5 | .json5 | json5 |
toml | .toml | toml |
xml | .xml | xml2js |
yaml | .yaml | yaml |
jsx | .jsx | esbuild |
vue | .vue | vue |
svelte | .svelte | svelte |
typescript | .ts | esbuild |
coffeescript | .coffee | coffeescript |
MIT
By submitting code you confirm that you are its sole owner and agree to place it under the terms of MIT, see LICENSE.
FAQs
universal common loader for JS runtimes
The npm package enload receives a total of 0 weekly downloads. As such, enload popularity was classified as not popular.
We found that enload 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.