{"name":"which-typed-array","version":"1.0.0","author":{"name":"Jordan Harband"},"contributors":[{"name":"Jordan Harband","email":"ljharb@gmail.com"}],"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":{"test":"npm run lint && npm run tests-only && npm run security","tests-only":"node --es-staging test.js","coverage":"covert test.js","coverage-quiet":"covert test.js --quiet","lint":"npm run jscs && npm run eslint","jscs":"jscs *.js","eslint":"eslint *.js","security":"nsp package"},"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.0.2","is-typed-array":"^1.0.2"},"devDependencies":{"tape":"^4.2.1","covert":"^1.1.0","jscs":"^2.2.1","nsp":"^1.1.0","eslint":"^1.6.0","@ljharb/eslint-config":"^1.3.0","make-arrow-function":"^1.1.0","make-generator-function":"^1.1.0","semver":"^5.0.3","replace":"^0.3.0","foreach":"^2.0.5","is-callable":"^1.1.0"},"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":"4794cb1899d6b3a84770b486a4323b9d6c3fe716","bugs":{"url":"https://github.com/ljharb/which-typed-array/issues"},"homepage":"https://github.com/ljharb/which-typed-array#readme","_id":"which-typed-array@1.0.0","_shasum":"a1a0d4c513ff028e046682096504220ef01d87e3","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.2","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"a1a0d4c513ff028e046682096504220ef01d87e3","tarball":"http://registry-npm.ywwl.com/which-typed-array/download/which-typed-array-1.0.0.tgz","integrity":"sha512-WEvvXQ6Afq6VwLA1lhYxaLjnV3nEzkAzgBwp8Sn68foRbywlhN6alaLqXcAYP1DDP/ouuK1mjceYxSjNOR3poQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMgzq7v7PQZeqIIDXrZmdlMEbg4WSMQwkOwbYcsdOu3QIgKpAFq/lly582pM3IqnQlSw/qlFK2TMbQD5jX4K9+5wk="}],"size":178896,"noattachment":false,"key":"/which-typed-array/-/which-typed-array-1.0.0.tgz"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"directories":{},"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":1444084831831,"_cnpm_publish_time":1444084831831,"dist-tags":{"latest":"1.1.24"}}