{"name":"which-typed-array","version":"1.1.19","keywords":["array","TypedArray","typed array","which","typed","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","ES6","toStringTag","Symbol.toStringTag","@@toStringTag"],"author":{"url":"http://ljharb.codes","name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","_id":"which-typed-array@1.1.19","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"contributors":[{"url":"http://ljharb.codes","name":"Jordan Harband","email":"ljharb@gmail.com"}],"homepage":"https://github.com/inspect-js/which-typed-array#readme","bugs":{"url":"https://github.com/inspect-js/which-typed-array/issues"},"dist":{"shasum":"df03842e870b6b88e117524a4b364b6fc689f956","tarball":"http://registry-npm.ywwl.com/which-typed-array/download/which-typed-array-1.1.19.tgz","fileCount":12,"integrity":"sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==","signatures":[{"sig":"MEQCICMRxDlp4tQX/zbG+sljn/iWCiwgiN1SAhJgMlhy8B9rAiBDIngv2t3ySTbJDorZ44qPmHKkP+D+2PuIF7IFQ0PZRg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43913,"size":12962,"noattachment":false,"key":"/which-typed-array/-/which-typed-array-1.1.19.tgz"},"main":"index.js","types":"./index.d.ts","engines":{"node":">= 0.4"},"funding":{"url":"https://github.com/sponsors/ljharb"},"gitHead":"45ddc94559dc520794397d5724e76cac402a09e5","scripts":{"lint":"eslint --ext=js,mjs .","test":"npm run tests-only && npm run test:harmony","prepack":"npmignore --auto --commentLines=autogenerated","pretest":"npm run --silent lint","version":"auto-changelog && git add CHANGELOG.md","postlint":"tsc -p . && attw -P","posttest":"npx npm@'>=10.2' audit --production","prepublish":"not-in-publish || npm run prepublishOnly","tests-only":"nyc tape test","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","test:harmony":"nyc node --harmony --es-staging test","prepublishOnly":"safe-publish-latest"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"testling":{"files":"test/index.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"repository":{"url":"git://github.com/inspect-js/which-typed-array.git","type":"git"},"_npmVersion":"10.9.2","description":"Which kind of Typed Array is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.","directories":{},"sideEffects":false,"_nodeVersion":"23.9.0","dependencies":{"gopd":"^1.2.0","for-each":"^0.3.5","call-bind":"^1.0.8","get-proto":"^1.0.1","call-bound":"^1.0.4","has-tostringtag":"^1.0.2","available-typed-arrays":"^1.0.7"},"publishConfig":{"ignore":[".github/workflows","types.d.ts"]},"_hasShrinkwrap":false,"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","hideCredit":true,"unreleased":false,"commitLimit":false,"backfillLimit":false},"devDependencies":{"nyc":"^10.3.2","tape":"^5.9.0","eslint":"=8.8.0","encoding":"^0.1.13","npmignore":"^0.3.1","in-publish":"^2.0.1","typescript":"next","@types/gopd":"^1.0.3","@types/tape":"^5.8.1","is-callable":"^1.2.7","auto-changelog":"^2.5.0","@types/for-each":"^0.3.3","@ljharb/tsconfig":"^0.3.2","@types/call-bind":"^1.0.5","@types/is-callable":"^1.1.2","make-arrow-function":"^1.2.0","safe-publish-latest":"^2.0.0","@arethetypeswrong/cli":"^0.17.4","@ljharb/eslint-config":"^21.1.1","make-generator-function":"^2.0.0","@types/make-arrow-function":"^1.2.2","@types/make-generator-function":"^2.0.3"},"_npmOperationalInternal":{"tmp":"tmp/which-typed-array_1.1.19_1741483626507_0.692895856109589","host":"s3://npm-registry-packages-npm-production"},"readme":"# which-typed-array <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nWhich kind of Typed Array is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.\n\n## Example\n\n```js\nvar whichTypedArray = require('which-typed-array');\nvar assert = require('assert');\n\nassert.equal(false, whichTypedArray(undefined));\nassert.equal(false, whichTypedArray(null));\nassert.equal(false, whichTypedArray(false));\nassert.equal(false, whichTypedArray(true));\nassert.equal(false, whichTypedArray([]));\nassert.equal(false, whichTypedArray({}));\nassert.equal(false, whichTypedArray(/a/g));\nassert.equal(false, whichTypedArray(new RegExp('a', 'g')));\nassert.equal(false, whichTypedArray(new Date()));\nassert.equal(false, whichTypedArray(42));\nassert.equal(false, whichTypedArray(NaN));\nassert.equal(false, whichTypedArray(Infinity));\nassert.equal(false, whichTypedArray(new Number(42)));\nassert.equal(false, whichTypedArray('foo'));\nassert.equal(false, whichTypedArray(Object('foo')));\nassert.equal(false, whichTypedArray(function () {}));\nassert.equal(false, whichTypedArray(function* () {}));\nassert.equal(false, whichTypedArray(x => x * x));\nassert.equal(false, whichTypedArray([]));\n\nassert.equal('Int8Array', whichTypedArray(new Int8Array()));\nassert.equal('Uint8Array', whichTypedArray(new Uint8Array()));\nassert.equal('Uint8ClampedArray', whichTypedArray(new Uint8ClampedArray()));\nassert.equal('Int16Array', whichTypedArray(new Int16Array()));\nassert.equal('Uint16Array', whichTypedArray(new Uint16Array()));\nassert.equal('Int32Array', whichTypedArray(new Int32Array()));\nassert.equal('Uint32Array', whichTypedArray(new Uint32Array()));\nassert.equal('Float32Array', whichTypedArray(new Float32Array()));\nassert.equal('Float64Array', whichTypedArray(new Float64Array()));\nassert.equal('BigInt64Array', whichTypedArray(new BigInt64Array()));\nassert.equal('BigUint64Array', whichTypedArray(new BigUint64Array()));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/which-typed-array\n[npm-version-svg]: https://versionbadg.es/inspect-js/which-typed-array.svg\n[deps-svg]: https://david-dm.org/inspect-js/which-typed-array.svg\n[deps-url]: https://david-dm.org/inspect-js/which-typed-array\n[dev-deps-svg]: https://david-dm.org/inspect-js/which-typed-array/dev-status.svg\n[dev-deps-url]: https://david-dm.org/inspect-js/which-typed-array#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/which-typed-array.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/which-typed-array.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/which-typed-array.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=which-typed-array\n[codecov-image]: https://codecov.io/gh/inspect-js/which-typed-array/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/which-typed-array/\n[actions-image]: https://img.shields.io/github/check-runs/inspect-js/which-typed-array/main\n[actions-url]: https://github.com/inspect-js/which-typed-array/actions\n","publish_time":1741483626704,"_cnpm_publish_time":1741483626704,"dist-tags":{"latest":"1.1.24"}}