1 | # possible-typed-array-names <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
---|
2 |
|
---|
3 | [![github actions][actions-image]][actions-url]
|
---|
4 | [![coverage][codecov-image]][codecov-url]
|
---|
5 | [![License][license-image]][license-url]
|
---|
6 | [![Downloads][downloads-image]][downloads-url]
|
---|
7 |
|
---|
8 | [![npm badge][npm-badge-png]][package-url]
|
---|
9 |
|
---|
10 | A simple list of possible Typed Array names.
|
---|
11 |
|
---|
12 | ## Example
|
---|
13 |
|
---|
14 | ```js
|
---|
15 | const assert = require('assert');
|
---|
16 |
|
---|
17 | const names = require('possible-typed-array-names');
|
---|
18 |
|
---|
19 | assert(Array.isArray(names));
|
---|
20 | assert(names.every(name => (
|
---|
21 | typeof name === 'string'
|
---|
22 | && typeof globalThis[name] === 'function'
|
---|
23 | && globalThis[name].name === name
|
---|
24 | )));
|
---|
25 | ```
|
---|
26 |
|
---|
27 | ## Tests
|
---|
28 | Simply clone the repo, `npm install`, and run `npm test`
|
---|
29 |
|
---|
30 | ## Security
|
---|
31 |
|
---|
32 | Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
|
---|
33 |
|
---|
34 | [package-url]: https://npmjs.org/package/possible-typed-array-names
|
---|
35 | [npm-version-svg]: https://versionbadg.es/ljharb/possible-typed-array-names.svg
|
---|
36 | [deps-svg]: https://david-dm.org/ljharb/possible-typed-array-names.svg
|
---|
37 | [deps-url]: https://david-dm.org/ljharb/possible-typed-array-names
|
---|
38 | [dev-deps-svg]: https://david-dm.org/ljharb/possible-typed-array-names/dev-status.svg
|
---|
39 | [dev-deps-url]: https://david-dm.org/ljharb/possible-typed-array-names#info=devDependencies
|
---|
40 | [npm-badge-png]: https://nodei.co/npm/possible-typed-array-names.png?downloads=true&stars=true
|
---|
41 | [license-image]: https://img.shields.io/npm/l/possible-typed-array-names.svg
|
---|
42 | [license-url]: LICENSE
|
---|
43 | [downloads-image]: https://img.shields.io/npm/dm/possible-typed-array-names.svg
|
---|
44 | [downloads-url]: https://npm-stat.com/charts.html?package=possible-typed-array-names
|
---|
45 | [codecov-image]: https://codecov.io/gh/ljharb/possible-typed-array-names/branch/main/graphs/badge.svg
|
---|
46 | [codecov-url]: https://app.codecov.io/gh/ljharb/possible-typed-array-names/
|
---|
47 | [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/possible-typed-array-names
|
---|
48 | [actions-url]: https://github.com/ljharb/possible-typed-array-names/actions
|
---|