
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.
@tvanlaerhoven/epex-client
Advanced tools
The Epex Client package enables querying of the latest European Power Exchange (EPEX) market data. It is intended primarily for hobbyist solutions, as the data is sourced directly from the official EPEX website.
The European Power Exchange (EPEX SPOT) is a market platform for the trading of electricity in Europe. It provides a marketplace for electricity producers, consumers, and traders to buy and sell electricity, aiming to create a transparent and efficient market for power trading.
npm i @tvanlaerhoven/epex-client
or
yarn @tvanlaerhoven/epex-client
First create an Epex client, with optional configuration.
The debug
property allows for extra logging during usage of the client.
import * as Epex from '@tvanlaerhoven/epex-client';
const client = new Epex.Client({ debug: true });
Then request the market data:
try {
// Get today's hourly market data
const data = await client.getDayAheadMarketData(Epex.MarketArea.Belgium, Epex.today());
console.log(`Today's electricity price from 9h-10h is €${data.entries[9].price}`);
} catch(error) {
console.error(error.message);
}
The Epex website does not allow browser requests from any other location than its own host (CORS). To solve this, run a local proxy server that drops any CORS headers from the http request.
import * as Epex from '@tvanlaerhoven/epex-client';
const client = new Epex.Client({proxyServer: 'http://localhost:8088', debug: true });
The example demonstrates this. Try it by running:
npm run example
The output is a table with today's market prices:
1.0.0
FAQs
Collect European Power Exchange (EPEX) market data
The npm package @tvanlaerhoven/epex-client receives a total of 13 weekly downloads. As such, @tvanlaerhoven/epex-client popularity was classified as not popular.
We found that @tvanlaerhoven/epex-client demonstrated a healthy version release cadence and project activity because the last version was released less than 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.