available-typed-arrays <sup>Version Badge</sup>

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

available-typed-arrays - Installation

To install available-typed-arrays via this registry, you'll need to install via the --registry parameter with your package manager.

n

NPM

npm install available-typed-arrays --registry https://js.registry.sudovanilla.org

Learn more about the --registry parameter.

Yarn

yarn config set registry https://js.registry.sudovanilla.org
yarn install available-typed-arrays

Learn more about the config option.

PNPM

pnpm install available-typed-arrays --registry https://js.registry.sudovanilla.org

Learn more about the --registry parameter.

Bun Logo

Bun

bun install available-typed-arrays --registry https://js.registry.sudovanilla.org

Learn more about the --registry parameter.

Learn more about setting this up in your bunfig.toml configuration.


For Deno, add the following to your .npmrc file in your directory:

registry="https://js.registry.sudovanilla.org"

Then run the deno install command.

available-typed-arrays - Download

Download Tarball (v1.0.7)

Integrity sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==
SHASUM a5cc375d6a03c2efc87a553f3e0b1522def14846
Tarball https://js.registry.sudovanilla.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz