
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@arcjet/body
Advanced tools
Arcjet utilities for extracting the body from a Node.js IncomingMessage
@arcjet/body
Arcjet utilities for getting the body from a Node.js Stream.
npm install -S @arcjet/body
import { readBody } from "../index";
// Some stream.Readable-like object, such as node's `http.IncomingMessage`
const request = new IncomingMessage();
// Returns the body as a utf-8 encoded string
const body = await readBody(request, { limit: 1024 });
console.log(body);
The implementation of this library is based on the raw-body package. Licensed MIT with licenses included in our source code.
We've chosen to re-implement the logic to read the body from the stream to keep
the dependency tree for our packages as light as possible. Our implementation only
provides the functionality that we need, specifically it excludes the functionality
to return the stream as a buffer and always parses it as a utf-8 string. The interface
was also changed to only support promises rather than the sync implementation provided by raw-body
.
Licensed under the Apache License, Version 2.0.
1.0.0-alpha.29 (2024-11-19)
node:process
(#2156) (346a350), closes #2154getTimeLabel
function (#2140) (73d94d5)FAQs
Arcjet utilities for extracting the body from a Node.js IncomingMessage
The npm package @arcjet/body receives a total of 1,490 weekly downloads. As such, @arcjet/body popularity was classified as popular.
We found that @arcjet/body demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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 uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.