Detalhes do pacote

typed-array-buffer

inspect-js139.2mMIT1.0.3

Get the ArrayBuffer out of a TypedArray, robustly.

typed array, arraybuffer, buffer

readme (leia-me)

typed-array-buffer Version Badge

github actions coverage License Downloads

npm badge

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.

Example

const typedArrayBuffer = require('typed-array-buffer');
const assert = require('assert');

const arr = new Uint8Array(0);
assert.equal(arr.buffer, typedArrayBuffer(arr));

Tests

Simply clone the repo, npm install, and run npm test

changelog (log de mudanças)

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v1.0.3 - 2024-12-18

Commits

  • [meta] update URLs aca9484
  • [types] use shared config fcdcb05
  • [actions] split out node 10-20, and 20+ 5f5a406
  • [types] improve types f45042c
  • [Dev Deps] update @ljharb/eslint-config, @ljharb/tsconfig, @types/object-inspect, @types/tape, auto-changelog, es-value-fixtures, object-inspect, tape 0c937e7
  • [Refactor] use call-bound directly cf4aba4
  • [Tests] replace aud with npm audit a3abb73
  • [Dev Deps] update @types/tape 548ffdc
  • [Deps] update is-typed-array 3b5deb1
  • [Deps] update call-bind 02cbc0c
  • [Tests] add attw and postlint f6daa66
  • [Dev Deps] add missing peer dep c9faf2a

v1.0.2 - 2024-02-19

Commits

v1.0.1 - 2024-02-06

Commits

  • [Dev Deps] update aud, available-typed-arrays, npmignore, object-inspect, tape 5334477
  • [Refactor] use es-errors, so things that only need those do not need get-intrinsic e2511e0
  • [Deps] update call-bind, get-intrinsic, is-typed-array 36c3b11
  • [meta] add sideEffects flag 46cc1f4

v1.0.0 - 2023-06-05

Commits