pax_global_header00006660000000000000000000000064147513117440014521gustar00rootroot0000000000000052 comment=2f74e2d3a02309b48fa6d6d48f8fd3359681707f ljharb-possible-typed-array-names-8c52c93/000077500000000000000000000000001475131174400205035ustar00rootroot00000000000000ljharb-possible-typed-array-names-8c52c93/.eslintrc000066400000000000000000000000531475131174400223250ustar00rootroot00000000000000{ "root": true, "extends": "@ljharb", } ljharb-possible-typed-array-names-8c52c93/.github/000077500000000000000000000000001475131174400220435ustar00rootroot00000000000000ljharb-possible-typed-array-names-8c52c93/.github/FUNDING.yml000066400000000000000000000010741475131174400236620ustar00rootroot00000000000000# These are supported funding model platforms github: [ljharb] patreon: # Replace with a single Patreon username open_collective: # Replace with a single Open Collective username ko_fi: # Replace with a single Ko-fi username tidelift: npm/possible-typed-array-names community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry liberapay: # Replace with a single Liberapay username issuehunt: # Replace with a single IssueHunt username otechie: # Replace with a single Otechie username custom: # Replace with a single custom sponsorship URL ljharb-possible-typed-array-names-8c52c93/.github/workflows/000077500000000000000000000000001475131174400241005ustar00rootroot00000000000000ljharb-possible-typed-array-names-8c52c93/.github/workflows/node-aught.yml000066400000000000000000000005651475131174400266640ustar00rootroot00000000000000name: 'Tests: node.js < 10' on: [pull_request, push] permissions: contents: read jobs: tests: uses: ljharb/actions/.github/workflows/node.yml@main with: range: '< 10' type: minors command: npm run tests-only skip-ls-check: true node: name: 'node < 10' needs: [tests] runs-on: ubuntu-latest steps: - run: true ljharb-possible-typed-array-names-8c52c93/.github/workflows/node-pretest.yml000066400000000000000000000002451475131174400272350ustar00rootroot00000000000000name: 'Tests: pretest/posttest' on: [pull_request, push] permissions: contents: read jobs: tests: uses: ljharb/actions/.github/workflows/pretest.yml@main ljharb-possible-typed-array-names-8c52c93/.github/workflows/node-tens.yml000066400000000000000000000005471475131174400265250ustar00rootroot00000000000000name: 'Tests: node.js 10 - 20' on: [pull_request, push] permissions: contents: read jobs: tests: uses: ljharb/actions/.github/workflows/node.yml@main with: range: '>= 10 < 20' type: minors command: npm run tests-only node: name: 'node 10 - 20' needs: [tests] runs-on: ubuntu-latest steps: - run: true ljharb-possible-typed-array-names-8c52c93/.github/workflows/node-twenties.yml000066400000000000000000000005361475131174400274140ustar00rootroot00000000000000name: 'Tests: node.js >= 20' on: [pull_request, push] permissions: contents: read jobs: tests: uses: ljharb/actions/.github/workflows/node.yml@main with: range: '>= 20' type: minors command: npm run tests-only node: name: 'node >= 20' needs: [tests] runs-on: ubuntu-latest steps: - run: true ljharb-possible-typed-array-names-8c52c93/.github/workflows/rebase.yml000066400000000000000000000002571475131174400260700ustar00rootroot00000000000000name: Automatic Rebase on: [pull_request_target] jobs: _: uses: ljharb/actions/.github/workflows/rebase.yml@main secrets: token: ${{ secrets.GITHUB_TOKEN }} ljharb-possible-typed-array-names-8c52c93/.github/workflows/require-allow-edits.yml000066400000000000000000000005151475131174400305220ustar00rootroot00000000000000name: Require “Allow Edits” on: [pull_request_target] permissions: contents: read jobs: _: permissions: pull-requests: read # for ljharb/require-allow-edits to check 'allow edits' on PR name: "Require “Allow Edits”" runs-on: ubuntu-latest steps: - uses: ljharb/require-allow-edits@main ljharb-possible-typed-array-names-8c52c93/.gitignore000066400000000000000000000041361475131174400224770ustar00rootroot00000000000000# Logs logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* .pnpm-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json # Runtime data pids *.pid *.seed *.pid.lock # Directory for instrumented libs generated by jscoverage/JSCover lib-cov # Coverage directory used by tools like istanbul coverage *.lcov # nyc test coverage .nyc_output # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) .grunt # Bower dependency directory (https://bower.io/) bower_components # node-waf configuration .lock-wscript # Compiled binary addons (https://nodejs.org/api/addons.html) build/Release # Dependency directories node_modules/ jspm_packages/ # Snowpack dependency directory (https://snowpack.dev/) web_modules/ # TypeScript cache *.tsbuildinfo # Optional npm cache directory .npm # Optional eslint cache .eslintcache # Optional stylelint cache .stylelintcache # Microbundle cache .rpt2_cache/ .rts2_cache_cjs/ .rts2_cache_es/ .rts2_cache_umd/ # Optional REPL history .node_repl_history # Output of 'npm pack' *.tgz # Yarn Integrity file .yarn-integrity # dotenv environment variable files .env .env.development.local .env.test.local .env.production.local .env.local # parcel-bundler cache (https://parceljs.org/) .cache .parcel-cache # Next.js build output .next out # Nuxt.js build / generate output .nuxt dist # Gatsby files .cache/ # Comment in the public line in if your project uses Gatsby and not Next.js # https://nextjs.org/blog/next-9-1#public-directory-support # public # vuepress build output .vuepress/dist # vuepress v2.x temp and cache directory .temp .cache # Docusaurus cache and generated files .docusaurus # Serverless directories .serverless/ # FuseBox cache .fusebox/ # DynamoDB Local files .dynamodb/ # TernJS port file .tern-port # Stores VSCode versions used for testing VSCode extensions .vscode-test # yarn v2 .yarn/cache .yarn/unplugged .yarn/build-state.yml .yarn/install-state.gz .pnp.* # Only apps should have lockfiles npm-shrinkwrap.json package-lock.json yarn.lock .npmignore ljharb-possible-typed-array-names-8c52c93/.npmrc000066400000000000000000000000671475131174400216260ustar00rootroot00000000000000package-lock=false allow-same-version=true message=v%s ljharb-possible-typed-array-names-8c52c93/CHANGELOG.md000066400000000000000000000046071475131174400223230ustar00rootroot00000000000000# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [v1.1.0](https://github.com/ljharb/possible-typed-array-names/compare/v1.0.0...v1.1.0) - 2025-02-06 ### Commits - [types] use shared tsconfig [`7d3057f`](https://github.com/ljharb/possible-typed-array-names/commit/7d3057f723d221c032951e618f45ad9044cae80d) - [actions] split out node 10-20, and 20+ [`3cc8138`](https://github.com/ljharb/possible-typed-array-names/commit/3cc81385d6af59c096475080d76a4c78e6fef664) - [actions] remove redundant finisher; use reusable workflows [`b46fe5d`](https://github.com/ljharb/possible-typed-array-names/commit/b46fe5d2d47054922f7be81acc0f3c2b7882ddab) - [New] add `Float16Array` [`77df613`](https://github.com/ljharb/possible-typed-array-names/commit/77df61313d3491acfd23da0d4452673cca476644) - [Dev Deps] update `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/tape`, `auto-changelog`, `tape` [`85bba2e`](https://github.com/ljharb/possible-typed-array-names/commit/85bba2e359add86b19ef058d4a0560d369bf55a2) - [Tests] tiny refactor [`b2ddd5a`](https://github.com/ljharb/possible-typed-array-names/commit/b2ddd5a9bc86b63631d9f2c17f21f0503492dbb3) - [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/tsconfig`, `@types/tape` [`ed4447f`](https://github.com/ljharb/possible-typed-array-names/commit/ed4447f9ef1ad8657186282140a74ab474240d4e) - [Tests] add attw; `postlint` [`b5b808c`](https://github.com/ljharb/possible-typed-array-names/commit/b5b808cebf0bc0bdb8636f4981cc8ffabb58bbbb) - [Tests] replace `aud` with `npm audit` [`ce71c4e`](https://github.com/ljharb/possible-typed-array-names/commit/ce71c4e993e03b41034a4ca96fb8531dd8b8cc14) ## v1.0.0 - 2024-02-19 ### Commits - Initial implementation, tests, readme, types [`c279f55`](https://github.com/ljharb/possible-typed-array-names/commit/c279f550021896afa50c1169b3111618a96cf898) - Initial commit [`0f22bf2`](https://github.com/ljharb/possible-typed-array-names/commit/0f22bf24d16fc8ea29483ed7ed378afb3758a4df) - npm init [`25d6cff`](https://github.com/ljharb/possible-typed-array-names/commit/25d6cffe4091921e4e210704dabed37ae3d7b261) - Only apps should have lockfiles [`a1bd592`](https://github.com/ljharb/possible-typed-array-names/commit/a1bd592fa037430d401b1d6d26cfea2c2d6789db) ljharb-possible-typed-array-names-8c52c93/LICENSE000066400000000000000000000020571475131174400215140ustar00rootroot00000000000000MIT License Copyright (c) 2024 Jordan Harband Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ljharb-possible-typed-array-names-8c52c93/README.md000066400000000000000000000041541475131174400217660ustar00rootroot00000000000000# possible-typed-array-names [![Version Badge][npm-version-svg]][package-url] [![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] [![npm badge][npm-badge-png]][package-url] A simple list of possible Typed Array names. ## Example ```js 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](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report. [package-url]: https://npmjs.org/package/possible-typed-array-names [npm-version-svg]: https://versionbadg.es/ljharb/possible-typed-array-names.svg [deps-svg]: https://david-dm.org/ljharb/possible-typed-array-names.svg [deps-url]: https://david-dm.org/ljharb/possible-typed-array-names [dev-deps-svg]: https://david-dm.org/ljharb/possible-typed-array-names/dev-status.svg [dev-deps-url]: https://david-dm.org/ljharb/possible-typed-array-names#info=devDependencies [npm-badge-png]: https://nodei.co/npm/possible-typed-array-names.png?downloads=true&stars=true [license-image]: https://img.shields.io/npm/l/possible-typed-array-names.svg [license-url]: LICENSE [downloads-image]: https://img.shields.io/npm/dm/possible-typed-array-names.svg [downloads-url]: https://npm-stat.com/charts.html?package=possible-typed-array-names [codecov-image]: https://codecov.io/gh/ljharb/possible-typed-array-names/branch/main/graphs/badge.svg [codecov-url]: https://app.codecov.io/gh/ljharb/possible-typed-array-names/ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/possible-typed-array-names [actions-url]: https://github.com/ljharb/possible-typed-array-names/actions ljharb-possible-typed-array-names-8c52c93/index.d.ts000066400000000000000000000003621475131174400224050ustar00rootroot00000000000000declare const names: [ 'Float16Array', 'Float32Array', 'Float64Array', 'Int8Array', 'Int16Array', 'Int32Array', 'Uint8Array', 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'BigInt64Array', 'BigUint64Array' ]; export = names;ljharb-possible-typed-array-names-8c52c93/index.js000066400000000000000000000004101475131174400221430ustar00rootroot00000000000000'use strict'; /** @type {import('.')} */ module.exports = [ 'Float16Array', 'Float32Array', 'Float64Array', 'Int8Array', 'Int16Array', 'Int32Array', 'Uint8Array', 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'BigInt64Array', 'BigUint64Array' ]; ljharb-possible-typed-array-names-8c52c93/package.json000066400000000000000000000044251475131174400227760ustar00rootroot00000000000000{ "name": "possible-typed-array-names", "version": "1.1.0", "description": "A simple list of possible Typed Array names.", "main": "index.js", "exports": { ".": "./index.js", "./package.json": "./package.json" }, "types": "./index.d.ts", "sideEffects": false, "scripts": { "prepack": "npmignore --auto --commentLines=autogenerated", "prepublishOnly": "safe-publish-latest", "prepublish": "not-in-publish || npm run prepublishOnly", "pretest": "npm run lint", "test": "npm run tests-only", "tests-only": "nyc tape 'test/**/*.js'", "posttest": "npx npm@'>= 10.2' audit --production", "prelint": "evalmd README.md && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)", "lint": "eslint --ext=js,mjs .", "postlint": "tsc && attw -P", "version": "auto-changelog && git add CHANGELOG.md", "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" }, "repository": { "type": "git", "url": "git+https://github.com/ljharb/possible-typed-array-names.git" }, "keywords": [ "typed", "array", "typedarray", "Float32Array", "Float64Array", "Int8Array", "Int16Array", "Int32Array", "Uint8Array", "Uint8ClampedArray", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array" ], "author": "Jordan Harband ", "license": "MIT", "bugs": { "url": "https://github.com/ljharb/possible-typed-array-names/issues" }, "homepage": "https://github.com/ljharb/possible-typed-array-names#readme", "devDependencies": { "@arethetypeswrong/cli": "^0.17.3", "@ljharb/eslint-config": "^21.1.1", "@ljharb/tsconfig": "^0.2.3", "@types/tape": "^5.8.1", "auto-changelog": "^2.5.0", "eclint": "^2.8.1", "eslint": "=8.8.0", "evalmd": "^0.0.19", "in-publish": "^2.0.1", "npmignore": "^0.3.1", "nyc": "^10.3.2", "safe-publish-latest": "^2.0.0", "tape": "^5.9.0", "typescript": "next" }, "auto-changelog": { "output": "CHANGELOG.md", "template": "keepachangelog", "unreleased": false, "commitLimit": false, "backfillLimit": false, "hideCredit": true }, "publishConfig": { "ignore": [ ".github/workflows" ] }, "engines": { "node": ">= 0.4" } } ljharb-possible-typed-array-names-8c52c93/test/000077500000000000000000000000001475131174400214625ustar00rootroot00000000000000ljharb-possible-typed-array-names-8c52c93/test/index.js000066400000000000000000000007261475131174400231340ustar00rootroot00000000000000'use strict'; var test = require('tape'); var names = require('../'); test('typed array names', function (t) { for (var i = 0; i < names.length; i++) { var name = names[i]; t.equal(typeof name, 'string', 'is string'); t.equal(names.indexOf(name), i, 'is unique (from start)'); t.equal(names.lastIndexOf(name), i, 'is unique (from end)'); t.match(typeof global[name], /^(?:function|undefined)$/, 'is a global function, or `undefined`'); } t.end(); }); ljharb-possible-typed-array-names-8c52c93/tsconfig.json000066400000000000000000000001641475131174400232130ustar00rootroot00000000000000{ "extends": "@ljharb/tsconfig", "compilerOptions": { "target": "ESNext", }, "exclude": [ "coverage", ], }