{"name":"is-typed-array","version":"1.1.15","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":"Is this value a JS Typed Array? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.","license":"MIT","main":"index.js","types":"./index.d.ts","sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","prelint":"evalmd README.md","lint":"eslint --ext=js,mjs .","postlint":"tsc -p . && attw -P","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":"npx npm@'>= 10.2' audit --production","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/is-typed-array.git"},"keywords":["array","TypedArray","typed array","is","typed","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","ES6","toStringTag","Symbol.toStringTag","@@toStringTag"],"dependencies":{"which-typed-array":"^1.1.16"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.1","@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.2","@types/for-each":"^0.3.3","@types/is-callable":"^1.1.2","@types/make-arrow-function":"^1.2.2","@types/make-generator-function":"^2.0.3","@types/node":"^20.17.10","@types/object-inspect":"^1.13.0","@types/tape":"^5.8.0","auto-changelog":"^2.5.0","encoding":"^0.1.13","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","has-tostringtag":"^1.0.2","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.1","nyc":"^10.3.2","object-inspect":"^1.13.3","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"next"},"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,"startingVersion":"1.1.10"},"publishConfig":{"ignore":[".github/workflows"]},"_id":"is-typed-array@1.1.15","gitHead":"4310dcb2d390f090bc74f557174301cd8aed5d5c","bugs":{"url":"https://github.com/inspect-js/is-typed-array/issues"},"homepage":"https://github.com/inspect-js/is-typed-array#readme","_nodeVersion":"23.4.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==","shasum":"4bfb4a45b61cee83a5a46fba778e4e8d59c0ce0b","tarball":"http://registry-npm.ywwl.com/is-typed-array/download/is-typed-array-1.1.15.tgz","fileCount":12,"unpackedSize":21922,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHPU+uupi/SLOnEgWUBwAV6IoYGMhpOSflUyR1KxAevwIgZPTSQyVKtB+R20CNerVzIQeKmzWmsT5j9TpRwa/v6Cg="}],"size":7454,"noattachment":false,"key":"/is-typed-array/-/is-typed-array-1.1.15.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-typed-array_1.1.15_1734542407149_0.16544168270480442"},"_hasShrinkwrap":false,"readme":"# is-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][5]][6]\n[![dev dependency status][7]][8]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nIs this value a JS Typed Array? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.\n\n## Example\n\n```js\nvar isTypedArray = require('is-typed-array');\nvar assert = require('assert');\n\nassert.equal(false, isTypedArray(undefined));\nassert.equal(false, isTypedArray(null));\nassert.equal(false, isTypedArray(false));\nassert.equal(false, isTypedArray(true));\nassert.equal(false, isTypedArray([]));\nassert.equal(false, isTypedArray({}));\nassert.equal(false, isTypedArray(/a/g));\nassert.equal(false, isTypedArray(new RegExp('a', 'g')));\nassert.equal(false, isTypedArray(new Date()));\nassert.equal(false, isTypedArray(42));\nassert.equal(false, isTypedArray(NaN));\nassert.equal(false, isTypedArray(Infinity));\nassert.equal(false, isTypedArray(new Number(42)));\nassert.equal(false, isTypedArray('foo'));\nassert.equal(false, isTypedArray(Object('foo')));\nassert.equal(false, isTypedArray(function () {}));\nassert.equal(false, isTypedArray(function* () {}));\nassert.equal(false, isTypedArray(x => x * x));\nassert.equal(false, isTypedArray([]));\n\nassert.ok(isTypedArray(new Int8Array()));\nassert.ok(isTypedArray(new Uint8Array()));\nassert.ok(isTypedArray(new Uint8ClampedArray()));\nassert.ok(isTypedArray(new Int16Array()));\nassert.ok(isTypedArray(new Uint16Array()));\nassert.ok(isTypedArray(new Int32Array()));\nassert.ok(isTypedArray(new Uint32Array()));\nassert.ok(isTypedArray(new Float32Array()));\nassert.ok(isTypedArray(new Float64Array()));\nassert.ok(isTypedArray(new BigInt64Array()));\nassert.ok(isTypedArray(new BigUint64Array()));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/is-typed-array\n[npm-version-svg]: https://versionbadg.es/inspect-js/is-typed-array.svg\n[deps-svg]: https://david-dm.org/inspect-js/is-typed-array.svg\n[deps-url]: https://david-dm.org/inspect-js/is-typed-array\n[dev-deps-svg]: https://david-dm.org/inspect-js/is-typed-array/dev-status.svg\n[dev-deps-url]: https://david-dm.org/inspect-js/is-typed-array#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/is-typed-array.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/is-typed-array.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/is-typed-array.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=is-typed-array\n[codecov-image]: https://codecov.io/gh/inspect-js/is-typed-array/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/is-typed-array/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-typed-array\n[actions-url]: https://github.com/inspect-js/is-typed-array/actions\n","publish_time":1734542407320,"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"alexandergugel","email":"alexander.gugel@gmail.com"}],"_cnpm_publish_time":1734542407320,"dist-tags":{"latest":"1.1.15"}}