{"name":"which-typed-array","version":"1.1.0","author":{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"},"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","scripts":{"pretest":"npm run --silent lint","test":"npm run tests-only","tests-only":"node --es-staging test.js","posttest":"npm run audit","coverage":"covert test.js","coverage-quiet":"covert test.js --quiet","lint":"eslint .","preaudit":"npm install --package-lock --package-lock-only","audit":"npm audit","postaudit":"rm package-lock.json"},"repository":{"type":"git","url":"git://github.com/ljharb/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":{"function-bind":"^1.1.1","is-typed-array":"^1.1.0"},"devDependencies":{"@ljharb/eslint-config":"^13.1.1","covert":"^1.1.1","eslint":"^5.14.0","foreach":"^2.0.5","is-callable":"^1.1.4","make-arrow-function":"^1.1.0","make-generator-function":"^1.1.0","replace":"^1.0.1","semver":"^5.6.0","tape":"^4.10.1"},"testling":{"files":"test.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"},"gitHead":"a9b57efcf2eff3e3dbb8caaa0cfec7fb869f424b","bugs":{"url":"https://github.com/ljharb/which-typed-array/issues"},"homepage":"https://github.com/ljharb/which-typed-array#readme","_id":"which-typed-array@1.1.0","_nodeVersion":"11.10.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-k7Xs1zymsr1oTmXdv1EStHlyBwIUWTl+OKh2WZlSOGXUjllS4Ujcv3+v6oYu6Pvd4/wRSF7JH/gusCcRWFukNA==","shasum":"98c9efafc484d049f9398b38139e0ea2eeebcea5","tarball":"http://registry-npm.ywwl.com/which-typed-array/download/which-typed-array-1.1.0.tgz","fileCount":10,"unpackedSize":24584,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcaFAqCRA9TVsSAnZWagAAv3kP/3SsHWUuSPQVxwxfi+hi\njjILx8QCzjDTG6yEmnOEk/eW0Z0YyCoc64FMP1PPVqL3caYhHKPI8XeGhW2d\ntlS+1JApbu27kx9JaP44njGSr8r06iT1guPAsu8ihTh9QIWHIxJ36LhhCTWl\nH/bOxnCVZqSFu+kH6s4cV6ysCwr2/1LqoVFzh3Nw2U/eVvPwB2jJNK6TCOgo\nn5nfgZl2kw2cPygU80W5JeZ+av7oPuok/bcgO0G5RFAQGjBOvgBLe0JUb09n\nOg3/r3xDPfdGz16ySF4fHNM2rw0tjNP0r0HHMAh7VUsWgm2zBPvjVzB4JmFu\nAmDZXJ42q3tqaEorlYr4yEJUyvOmDNzSdbJltcaRUlzX628iX6as1XDpKhCI\nmTh/XEYXhdH8hXIVslv4RnuTMB5eMFzg7KrWLUBVQ7RuYR4+QnqPOiOeXuf1\n8IadmFt1YlfN42dFgUjiIPFl550hrzRnTv+LDQ5tzTkXrE3/P2eZsgWyDA3/\nLBl0q4vS/0VwUmwIHvt1m+xSqR5HQ2rUYrdfff+GTU4xJyioXqQ2UKZlAo/6\n9EOsruCVL5LhVjFb1VC8/A3+Dq5cr8Quiolgszq1IXCxo8ikcgTjizQSXU8B\nAXoZ8oBcfMaDa6k2OBYs27SN/opOJ+yD+PaGOgnBOK70pLLIyx1h0gcHR0jN\nMKTo\r\n=PCLx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqWbH98qSMAnNkErIR0iz+oON21pCvEMwoURUtmbMHNQIhAK3LzpG+EakjupstT5i2jmDTXyExsVnhZa6B0I3W0JOI"}],"size":6789,"noattachment":false,"key":"/which-typed-array/-/which-typed-array-1.1.0.tgz"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/which-typed-array_1.1.0_1550340137858_0.08314622131208194"},"_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":1550340138017,"_cnpm_publish_time":1550340138017,"dist-tags":{"latest":"1.1.24"}}