Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

typedarray

es-shims55.8mMIT0.0.7

TypedArray polyfill for old browsers

ArrayBuffer, DataView, Float32Array, Float64Array, Int8Array, Int16Array, Int32Array, Uint8Array, Uint8ClampedArray, Uint16Array, Uint32Array, typed, array, polyfill

readme

typedarray Version Badge

github actions coverage License Downloads

npm badge

TypedArray polyfill ripped from this module.

build status

testling badge

example

var Uint8Array = require('typedarray').Uint8Array;
var ua = new Uint8Array(5);
ua[1] = 256 + 55;
console.log(ua[1]);

output:

55

methods

var TA = require('typedarray')

The TA object has the following constructors:

  • TA.ArrayBuffer
  • TA.DataView
  • TA.Float32Array
  • TA.Float64Array
  • TA.Int8Array
  • TA.Int16Array
  • TA.Int32Array
  • TA.Uint8Array
  • TA.Uint8ClampedArray
  • TA.Uint16Array
  • TA.Uint32Array

install

With npm do:

npm install typedarray

To use this module in the browser, compile with browserify or download a UMD build from browserify CDN:

http://wzrd.in/standalone/typedarray@latest

license

MIT

changelog

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.

v0.0.7 - 2022-10-12

Commits

  • [eslint] fix indentation 2e83ef6
  • [eslint] add eslint 592fe17
  • [readme] rename, add badges c5a4998
  • [meta] add auto-changelog c77cc4a
  • [actions] add reusable workflows 5a874a6
  • [meta] create FUNDING.yml; add funding in package.json 5421bfb
  • [meta] use npmignore to autogenerate an npmignore file 85f441b
  • Only apps should have lockfiles c7cee04
  • [meta] update URLs bd1ee94
  • [Dev Deps] update tape 8aaa43b
  • [meta] add safe-publish-latest 809caf9
  • [Tests] add aud in posttest c8f7ac5

v0.0.6 - 2014-05-17

Commits

v0.0.5 - 2013-12-12

Commits

  • Ensure defineProp is always defined 316be36

v0.0.4 - 2013-12-10

Commits

  • Remove "reserved words" variable names (for IE6-8) 60869cc

v0.0.3 - 2013-12-10

Commits

  • Fix more ReferenceError bugs in DataView ddb968a

v0.0.2 - 2013-12-10

Commits

  • Fix "ReferenceError: 'ArrayBuffer' is undefined" when initializing a DataView 1ffacbc

v0.0.1 - 2013-12-10

Fixed

  • 0.0.1 #1

Commits

v0.0.0 - 2013-12-09

Commits