
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
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.
The npm package typed-array-buffer receives a total of 24,961,002 weekly downloads. As such, typed-array-buffer popularity was classified as popular.
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.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.