Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
typed-array-buffer
Advanced tools
Get the ArrayBuffer out of a TypedArray, robustly.
This will work in node <= 0.10 and < 0.11.4, where there's no prototype accessor, only a nonconfigurable own property.
It will also work in modern engines where TypedArray.prototype.buffer
has been deleted after this module has loaded.
const typedArrayBuffer = require('typed-array-buffer');
const assert = require('assert');
const arr = new Uint8Array(0);
assert.equal(arr.buffer, typedArrayBuffer(arr));
Simply clone the repo, npm install
, and run npm test
v1.0.3 - 2024-12-18
aca9484
fcdcb05
5f5a406
f45042c
@ljharb/eslint-config
, @ljharb/tsconfig
, @types/object-inspect
, @types/tape
, auto-changelog
, es-value-fixtures
, object-inspect
, tape
0c937e7
call-bound
directly cf4aba4
aud
with npm audit
a3abb73
@types/tape
548ffdc
is-typed-array
3b5deb1
call-bind
02cbc0c
postlint
f6daa66
c9faf2a
FAQs
Get the ArrayBuffer out of a TypedArray, robustly.
We found that typed-array-buffer 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
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.