possible-typed-array-names <sup>Version Badge</sup>

github actions coverage License Downloads

npm badge

A simple list of possible Typed Array names.

Example

const assert = require('assert');

const names = require('possible-typed-array-names');

assert(Array.isArray(names));
assert(names.every(name => (
    typeof name === 'string'
    && ((
        typeof globalThis[name] === 'function'
        && globalThis[name].name === name
    ) || typeof globalThis[name] === 'undefined')
)));

Tests

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

Security

Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.

possible-typed-array-names - Installation

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

n

NPM

npm install possible-typed-array-names --registry https://js.registry.sudovanilla.org

Learn more about the --registry parameter.

Yarn

yarn config set registry https://js.registry.sudovanilla.org
yarn install possible-typed-array-names

Learn more about the config option.

PNPM

pnpm install possible-typed-array-names --registry https://js.registry.sudovanilla.org

Learn more about the --registry parameter.

Bun Logo

Bun

bun install possible-typed-array-names --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.

possible-typed-array-names - Download

Download Tarball (v1.1.0)

Integrity sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==
SHASUM 93e3582bc0e5426586d9d07b79ee40fc841de4ae
Tarball https://js.registry.sudovanilla.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz