39ae40a42c13a346ffdfe800b3f7af247d32fab485865cbf4f44a2217f5728fab452d92c48253cb37962a99689885a5ca5affeab03ffdcf1e1fa76c2305d76 2.1 KB

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