
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
buffer-cutter
Advanced tools
Cut buffer to length or something(not developed...)
Cut a specific part of the buffer and get it
import { cutBuffer } from 'buffer-cutter';
const buffer = Buffer.from('abcde');
// <Buffer 61 62 63 64 65>
cutBuffer(buffer, { deepCopy: true, start: 0, end: 3 });
// <Buffer 61 62 63>
Cut the buffer into a specific unit and bring it as an iterable
import { cuttingBuffer } from 'buffer-cutter';
const buffer = Buffer.from('abcde');
// <Buffer 61 62 63 64 65>
cuttingBuffer(buffer, { deepCopy: true, length: 2 });
// [ <Buffer 61 62>, <Buffer 63 64>, <Buffer 65> ]
Cut the buffer output of Readable Stream
import { Readable } from 'stream';
import { cuttingRStream } from 'buffer-cutter';
const buffer = Buffer.from('abcdefghi');
// <Buffer 61 62 63 64 65 66 67 68 69>
const bufStream = Readable.from(buffer);
// readalbe
for await (const c of cuttingRStream(bufStream, { length: 3 })) {
console.log(c);
}
// <Buffer 61 62 63>
// <Buffer 64 65 66>
// <Buffer 67 68 69>
FAQs
Cut buffer to length or something
We found that buffer-cutter 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.