{"name":"which-typed-array","version":"1.1.9","author":{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"},"funding":{"url":"https://github.com/sponsors/ljharb"},"contributors":[{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"}],"description":"Which kind of Typed Array is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.","license":"MIT","main":"index.js","sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","pretest":"npm run --silent lint","test":"npm run tests-only && npm run test:harmony","tests-only":"nyc tape test","test:harmony":"nyc node --harmony --es-staging test","posttest":"aud --production","lint":"eslint --ext=js,mjs .","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://github.com/inspect-js/which-typed-array.git"},"keywords":["array","TypedArray","typed array","which","typed","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","ES6","toStringTag","Symbol.toStringTag","@@toStringTag"],"dependencies":{"available-typed-arrays":"^1.0.5","call-bind":"^1.0.2","for-each":"^0.3.3","gopd":"^1.0.1","has-tostringtag":"^1.0.0","is-typed-array":"^1.1.10"},"devDependencies":{"@ljharb/eslint-config":"^21.0.0","aud":"^2.0.1","auto-changelog":"^2.4.0","eslint":"=8.8.0","in-publish":"^2.0.1","is-callable":"^1.2.7","make-arrow-function":"^1.2.0","make-generator-function":"^2.0.0","npmignore":"^0.3.0","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.6.1"},"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"]},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"gitHead":"c7f7c5510fce82dbf8deb77d091b22d0f20a4695","bugs":{"url":"https://github.com/inspect-js/which-typed-array/issues"},"homepage":"https://github.com/inspect-js/which-typed-array#readme","_id":"which-typed-array@1.1.9","_nodeVersion":"19.0.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==","shasum":"307cf898025848cf995e795e8423c7f337efbde6","tarball":"http://registry-npm.ywwl.com/which-typed-array/download/which-typed-array-1.1.9.tgz","fileCount":10,"unpackedSize":32040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEGUaMk1VeVcJl9naefNWUWA/7UcJekXWiV9t3C+R+U1AiEAgLII00sbIndC/0snftwNzvXBW1S1o/vh4t2i9JKpLw8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYpaeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpqRAApJHsYKNBC/4wFcSYs+2rsk9ls/J+1Yo2c6A4hS3Af1vZNrFr\r\n5JBVimvp5SEFr0v0/N64osCzzrw+nbgE4Y47Psh1+LURSiaw+zqD9ItMYBfZ\r\nAifOJ1LPwl90SlDGKQxm6LLyinuhP489dzSwiG6bKcpCG2R6Bsh+TnqyX0MB\r\n57TOVKlSRosNaDjR4S6eUBHfEKk6gYi6v06Dgq4eenU8P3psmztQWFbVXeHz\r\njarQ6CP8BJMENFaO/6v/P64JtPiJPIjjS1liX9ISfN4XjQnFO5D3rEA7CCPh\r\n9tfTlHz58H/pt8RLUYmjQLf4GdoAZEvkddy0Xmvhi4S/7WM/le+b2MApIiDC\r\n9FEZNOogFNuR92sIieMC+HvNUhdEpAIxFZPCkBhOE7IivU+FbQyOJDNU/o01\r\nCRWTkGivJLg3eUiVwoWdyQG6U0sXF9AkWNsA2008/oGYY65rbbZAcdI2fLeF\r\noOWM5siJwFhCKGk+Xurwto4qxZ0ltaZ374WQaCoG71TTMf8RdhV3GFXnP4rS\r\nY6c8zRWUwLDajDQtHQ8Beg0wNQwqRgfEE9NiNMAX87r4YwuBcmo2pHQnbyZJ\r\ny19ZQVxuQsrpI/pmjV4Y6czC2gv2Z0s7+F1tqJlg1p5m/o/UeFv1OgstexnZ\r\nUX+T4imiydMfqIsFWj9HjXm9aqv/ZGA4oUQ=\r\n=dDA2\r\n-----END PGP SIGNATURE-----\r\n","size":9889,"noattachment":false,"key":"/which-typed-array/-/which-typed-array-1.1.9.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/which-typed-array_1.1.9_1667405470800_0.8456955482181028"},"_hasShrinkwrap":false,"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/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/which-typed-array\n[actions-url]: https://github.com/inspect-js/which-typed-array/actions\n","publish_time":1667405470952,"_cnpm_publish_time":1667405470952,"dist-tags":{"latest":"1.1.24"}}