
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.
data_buffers
Advanced tools
DataBuffer and DataBitBuffer built on top of ArrayBuffers that grows when needed.
DataBuffer and DataBitBuffer built on top of ArrayBuffers that grows when needed.
github: https://github.com/jbluepolarbear/data_buffers npm: https://www.npmjs.com/package/data_buffers
Provides a pool of reusable ArrayBuffers and provides the functionality to convert an ArrayBuffer to and from a base 64 string.
A lightweight wrapper around DataView with the ability to grow the buffer as needed.
A Data Bit Buffer View built on top of DataBuffer. Allows reading and writing values of 1-32 bits.
Usage:
const arrayBufferProvider = new ArrayBufferProvider();
const dataBuffer = new DataBuffer(arrayBufferProvider);
const sut = new DataBitBuffer(dataBuffer);
let i: number;
let value: number;
let testValues = [];
// input
for (i = 0; i < 7; ++i) {
value = 1 << i;
sut.setInt8(value);
testValues.push(value);
}
for (i = 0; i < 7; ++i) {
value = 1 << (i + 7);
sut.setInt16(value);
testValues.push(value);
}
for (i = 0; i < 15; ++i) {
value = 1 << (i + 15 - 1);
sut.setInt32(value);
testValues.push(value);
}
for (i = 1; i < 15; ++i) {
value = 1 << (i - 1);
sut.setBits(i, value);
testValues.push(value);
}
var packed = arrayBufferProvider.arrayBufferToTransportString({
buffer: sut.getArrayBuffer(),
length: sut.getArrayBufferOffset(),
});
var result = arrayBufferProvider.transportStringToArrayBuffer(packed);
sut.loadBuffer(result);
arrayBufferProvider.giveArrayBufferBack(result.buffer);
sut.setOffset(0);
for (i = 0; i < 7; ++i) {
console.log(sut.getInt8());
testValues.shift();
}
for (i = 0; i < 7; ++i) {
console.log(sut.getInt16());
testValues.shift();
}
for (i = 0; i < 15; ++i) {
console.log(sut.getInt32());
testValues.shift();
}
for (i = 1; i < 15; ++i) {
console.log(sut.getBits(i));
testValues.shift();
}
FAQs
DataBuffer and DataBitBuffer built on top of ArrayBuffers that grows when needed.
The npm package data_buffers receives a total of 7 weekly downloads. As such, data_buffers popularity was classified as not popular.
We found that data_buffers 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.