codeql-action/node_modules/available-typed-arrays
2024-09-16 17:29:58 +00:00
..
.github Bump eslint-plugin-import to avoid vulnerability in dependency 2023-01-18 21:00:05 +00:00
test Bump eslint-plugin-import to avoid vulnerability in dependency 2023-01-18 21:00:05 +00:00
.eslintrc Update checked-in dependencies 2024-09-16 17:29:58 +00:00
.nycrc Bump eslint-plugin-import to avoid vulnerability in dependency 2023-01-18 21:00:05 +00:00
CHANGELOG.md Update checked-in dependencies 2024-09-16 17:29:58 +00:00
index.d.ts Update checked-in dependencies 2024-09-16 17:29:58 +00:00
index.js Update checked-in dependencies 2024-09-16 17:29:58 +00:00
LICENSE Bump eslint-plugin-import to avoid vulnerability in dependency 2023-01-18 21:00:05 +00:00
package.json Update checked-in dependencies 2024-09-16 17:29:58 +00:00
README.md Update checked-in dependencies 2024-09-16 17:29:58 +00:00
tsconfig.json Update checked-in dependencies 2024-09-16 17:29:58 +00:00

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