Détail du package

possible-typed-array-names

ljharb140.3mMIT1.1.0

A simple list of possible Typed Array names.

typed, array, typedarray, Float32Array

readme

possible-typed-array-names Version Badge

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.

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.1.0 - 2025-02-06

Commits

  • [types] use shared tsconfig 7d3057f
  • [actions] split out node 10-20, and 20+ 3cc8138
  • [actions] remove redundant finisher; use reusable workflows b46fe5d
  • [New] add Float16Array 77df613
  • [Dev Deps] update @ljharb/eslint-config, @ljharb/tsconfig, @types/tape, auto-changelog, tape 85bba2e
  • [Tests] tiny refactor b2ddd5a
  • [Dev Deps] update @arethetypeswrong/cli, @ljharb/tsconfig, @types/tape ed4447f
  • [Tests] add attw; postlint b5b808c
  • [Tests] replace aud with npm audit ce71c4e

v1.0.0 - 2024-02-19

Commits