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

Package detail

available-typed-arrays

inspect-js118.8mMIT1.0.7TypeScript support: included

Returns an array of Typed Array names that are available in the current environment

typed, arrays, Float32Array, Float64Array, Int8Array, Int16Array, Int32Array, Uint8Array, Uint8ClampedArray, Uint16Array, Uint32Array, BigInt64Array, BigUint64Array

readme

available-typed-arrays Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Returns an array of Typed Array names that are available in the current environment.

Example

var availableTypedArrays = require('available-typed-arrays');
var assert = require('assert');

assert.deepStrictEqual(
    availableTypedArrays().sort(),
    [
        'Int8Array',
        'Uint8Array',
        'Uint8ClampedArray',
        'Int16Array',
        'Uint16Array',
        'Int32Array',
        'Uint32Array',
        'Float32Array',
        'Float64Array',
        'BigInt64Array',
        'BigUint64Array'
    ].sort()
);

Tests

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

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.

v1.0.7 - 2024-02-19

Commits

  • [Refactor] use possible-typed-array-names ac86abf

v1.0.6 - 2024-01-31

Commits

  • [actions] reuse common workflows 1850353
  • [meta] use npmignore to autogenerate an npmignore file 5c7de12
  • [patch] add types fcfb0ea
  • [actions] update codecov uploader d844945
  • [Dev Deps] update eslint, @ljharb/eslint-config, array.prototype.every, safe-publish-latest, tape a2be6f4
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, auto-changelog, tape b283a3e
  • [actions] update rebase action to use reusable workflow 0ad1f2d
  • [Dev Deps] update @ljharb/eslint-config, array.prototype.every, aud, tape cd36e81
  • [meta] simplify "exports" f696e5f
  • [Dev Deps] update aud, npmignore, tape bf20080

v1.0.5 - 2021-08-30

Fixed

  • [Refactor] use globalThis if available #12

Commits

  • [Dev Deps] update eslint, @ljharb/eslint-config, tape 1199790

v1.0.4 - 2021-05-25

Commits

  • [Refactor] Remove array.prototype.filter dependency f39c90e
  • [Dev Deps] update eslint, auto-changelog b2e3a03
  • [meta] create FUNDING.yml 8c0e758
  • [Tests] fix harmony test matrix ef96549
  • [meta] add sideEffects flag 288cca0

v1.0.3 - 2021-05-19

Commits

  • [Tests] migrate tests to Github Actions 3ef082c
  • [meta] do not publish github action workflow files fd95ffd
  • [actions] use node/install instead of node/run; use codecov action eb6bd65
  • [Tests] run nyc on all tests 636c946
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, auto-changelog, tape 70a3b61
  • [actions] add "Allow Edits" workflow bd09c45
  • [Dev Deps] update eslint, @ljharb/eslint-config, array.prototype.every, aud, tape 8f97523
  • [readme] fix URLs 75418e2
  • [readme] add actions and codecov badges 4a8bc30
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud 65198ac
  • [actions] update workflows 7f816eb
  • [Refactor] use array.prototype.filter instead of array-filter 2dd1038
  • [actions] switch Automatic Rease workflow to pull_request_target event 9b45e91
  • [Dev Deps] update auto-changelog, tape 0003a5b
  • [meta] use prepublishOnly script for npm 7+ d884dd1
  • [readme] remove travis badge 9da2b3c
  • [Dev Deps] update auto-changelog; add aud 41b1336
  • [Tests] only audit prod deps 2571826

v1.0.2 - 2020-01-26

Commits

  • [actions] add automatic rebasing / merge commit blocking 3229a74
  • [Dev Deps] update @ljharb/eslint-config 9579abe
  • [Fix] remove require condition to avoid experimental warning 2cade6b

v1.0.1 - 2020-01-24

Commits

v1.0.0 - 2020-01-24

Commits