{
  "_id": "is-data-view",
  "maintainers": [
    {
      "name": "ljharb",
      "email": "ljharb@gmail.com"
    }
  ],
  "keywords": [
    "javascript",
    "ecmascript",
    "dataview",
    "data",
    "view",
    "typedarray",
    "typedarrays"
  ],
  "dist-tags": {
    "latest": "1.0.2"
  },
  "author": {
    "name": "Jordan Harband",
    "email": "ljharb@gmail.com"
  },
  "_rev": "2-03a7300b6872094e1ed0122d9dea632c",
  "description": "Is this value a JS DataView? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.",
  "readme": "# is-data-view <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\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 DataView? 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 isDataView = require('is-data-view');\nvar assert = require('assert');\n\nassert.equal(false, isDataView(undefined));\nassert.equal(false, isDataView(null));\nassert.equal(false, isDataView(false));\nassert.equal(false, isDataView(true));\nassert.equal(false, isDataView([]));\nassert.equal(false, isDataView({}));\nassert.equal(false, isDataView(/a/g));\nassert.equal(false, isDataView(new RegExp('a', 'g')));\nassert.equal(false, isDataView(new Date()));\nassert.equal(false, isDataView(42));\nassert.equal(false, isDataView(NaN));\nassert.equal(false, isDataView(Infinity));\nassert.equal(false, isDataView(new Number(42)));\nassert.equal(false, isDataView('foo'));\nassert.equal(false, isDataView(Object('foo')));\nassert.equal(false, isDataView(function () {}));\nassert.equal(false, isDataView(function* () {}));\nassert.equal(false, isDataView(x => x * x));\nassert.equal(false, isDataView([]));\nassert.equal(false, isDataView(new Int8Array()));\nassert.equal(false, isDataView(new Uint8Array()));\nassert.equal(false, isDataView(new Uint8ClampedArray()));\nassert.equal(false, isDataView(new Int16Array()));\nassert.equal(false, isDataView(new Uint16Array()));\nassert.equal(false, isDataView(new Int32Array()));\nassert.equal(false, isDataView(new Uint32Array()));\nassert.equal(false, isDataView(new Float32Array()));\nassert.equal(false, isDataView(new Float64Array()));\nassert.equal(false, isDataView(new BigInt64Array()));\nassert.equal(false, isDataView(new BigUint64Array()));\n\nassert.ok(isDataView(new DataView(new ArrayBuffer(0))));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/is-data-view\n[npm-version-svg]: https://versionbadg.es/inspect-js/is-data-view.svg\n[deps-svg]: https://david-dm.org/inspect-js/is-data-view.svg\n[deps-url]: https://david-dm.org/inspect-js/is-data-view\n[dev-deps-svg]: https://david-dm.org/inspect-js/is-data-view/dev-status.svg\n[dev-deps-url]: https://david-dm.org/inspect-js/is-data-view#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/is-data-view.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/is-data-view.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/is-data-view.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=is-data-view\n[codecov-image]: https://codecov.io/gh/inspect-js/is-data-view/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/is-data-view/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-data-view\n[actions-url]: https://github.com/inspect-js/is-data-view/actions\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/inspect-js/is-data-view.git"
  },
  "bugs": {
    "url": "https://github.com/inspect-js/is-data-view/issues"
  },
  "license": "MIT",
  "versions": {
    "1.0.0": {
      "name": "is-data-view",
      "version": "1.0.0",
      "keywords": [
        "javascript",
        "ecmascript",
        "dataview",
        "data",
        "view",
        "typedarray",
        "typedarrays"
      ],
      "author": {
        "name": "Jordan Harband",
        "email": "ljharb@gmail.com"
      },
      "license": "MIT",
      "_id": "is-data-view@1.0.0",
      "maintainers": [
        {
          "name": "ljharb",
          "email": "ljharb@gmail.com"
        }
      ],
      "homepage": "https://github.com/inspect-js/is-data-view#readme",
      "bugs": {
        "url": "https://github.com/inspect-js/is-data-view/issues"
      },
      "dist": {
        "shasum": "fb78e6c1c0df965b6a9891896c9acbb62b9ef62f",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/is-data-view/-/is-data-view-1.0.0.tgz",
        "fileCount": 10,
        "integrity": "sha512-X8hoSDf+JJRf6XG0vsa0FT/304X26argGxbJIDe6T2o7/sFfUoPBRV71uzTh5dp+MShu2YhfqLJc2k8bzVXV8A==",
        "signatures": [
          {
            "sig": "MEQCIC26KBQcDW+BuSg3Xqv/0OMFQC4c2GRJd09OsBOiULHeAiB1c44UpeuOimdpbMrUIHou5R3Uu4RlETN603LN6w2Z0Q==",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 10851
      },
      "main": "index.js",
      "engines": {
        "node": ">= 0.4"
      },
      "exports": {
        ".": "./index.js",
        "./package.json": "./package.json"
      },
      "funding": {
        "url": "https://github.com/sponsors/ljharb"
      },
      "gitHead": "684361510ea1ac6ccbdd7b1fe5940d828af8fb76",
      "scripts": {
        "lint": "eslint --ext=js,mjs .",
        "test": "npm run tests-only",
        "prelint": "evalmd README.md",
        "prepack": "npmignore --auto --commentLines=autogenerated",
        "pretest": "npm run lint",
        "version": "auto-changelog && git add CHANGELOG.md",
        "posttest": "aud --production",
        "prepublish": "not-in-publish || npm run prepublishOnly",
        "tests-only": "nyc tape 'test/**/*.js'",
        "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
        "prepublishOnly": "safe-publish-latest"
      },
      "_npmUser": {
        "name": "ljharb",
        "email": "ljharb@gmail.com"
      },
      "testling": {
        "files": "test/index.js"
      },
      "repository": {
        "url": "git+https://github.com/inspect-js/is-data-view.git",
        "type": "git"
      },
      "_npmVersion": "10.2.4",
      "description": "Is this value a JS DataView? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.",
      "directories": {},
      "_nodeVersion": "21.6.0",
      "dependencies": {
        "is-typed-array": "^1.1.12"
      },
      "publishConfig": {
        "ignore": [
          ".github/workflows"
        ]
      },
      "_hasShrinkwrap": false,
      "auto-changelog": {
        "output": "CHANGELOG.md",
        "template": "keepachangelog",
        "hideCredit": true,
        "unreleased": false,
        "commitLimit": false,
        "backfillLimit": false
      },
      "devDependencies": {
        "aud": "^2.0.3",
        "nyc": "^10.3.2",
        "tape": "^5.6.5",
        "eslint": "=8.8.0",
        "evalmd": "^0.0.19",
        "for-each": "^0.3.3",
        "npmignore": "^0.3.0",
        "in-publish": "^2.0.1",
        "auto-changelog": "^2.4.0",
        "object-inspect": "^1.12.3",
        "has-tostringtag": "^1.0.0",
        "es-value-fixtures": "^1.4.2",
        "make-arrow-function": "^1.2.0",
        "safe-publish-latest": "^2.0.0",
        "@ljharb/eslint-config": "^21.1.0",
        "available-typed-arrays": "^1.0.5",
        "make-generator-function": "^2.0.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/is-data-view_1.0.0_1706739628929_0.06076287608283515",
        "host": "s3://npm-registry-packages"
      }
    },
    "1.0.1": {
      "name": "is-data-view",
      "version": "1.0.1",
      "keywords": [
        "javascript",
        "ecmascript",
        "dataview",
        "data",
        "view",
        "typedarray",
        "typedarrays"
      ],
      "author": {
        "name": "Jordan Harband",
        "email": "ljharb@gmail.com"
      },
      "license": "MIT",
      "_id": "is-data-view@1.0.1",
      "maintainers": [
        {
          "name": "ljharb",
          "email": "ljharb@gmail.com"
        }
      ],
      "homepage": "https://github.com/inspect-js/is-data-view#readme",
      "bugs": {
        "url": "https://github.com/inspect-js/is-data-view/issues"
      },
      "dist": {
        "shasum": "4b4d3a511b70f3dc26d42c03ca9ca515d847759f",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/is-data-view/-/is-data-view-1.0.1.tgz",
        "fileCount": 12,
        "integrity": "sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==",
        "signatures": [
          {
            "sig": "MEYCIQDAPtR92CNGpVCZ5QM9dvMN3v797ksnH9/+ab4Ej+556AIhAPz9ZK9Yn5r4G6WYeo8cu3RUHYzBGjE3vavESCvqo/sO",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 15556
      },
      "main": "index.js",
      "types": "./index.d.ts",
      "engines": {
        "node": ">= 0.4"
      },
      "exports": {
        ".": "./index.js",
        "./package.json": "./package.json"
      },
      "funding": {
        "url": "https://github.com/sponsors/ljharb"
      },
      "gitHead": "2a35354be23b672154070c766bdf857eb4e8990b",
      "scripts": {
        "lint": "eslint --ext=js,mjs .",
        "test": "npm run tests-only",
        "prelint": "evalmd README.md",
        "prepack": "npmignore --auto --commentLines=autogenerated",
        "pretest": "npm run lint",
        "version": "auto-changelog && git add CHANGELOG.md",
        "postlint": "tsc -p .",
        "posttest": "aud --production",
        "prepublish": "not-in-publish || npm run prepublishOnly",
        "tests-only": "nyc tape 'test/**/*.js'",
        "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
        "prepublishOnly": "safe-publish-latest"
      },
      "_npmUser": {
        "name": "ljharb",
        "email": "ljharb@gmail.com"
      },
      "testling": {
        "files": "test/index.js"
      },
      "repository": {
        "url": "git+https://github.com/inspect-js/is-data-view.git",
        "type": "git"
      },
      "_npmVersion": "10.2.4",
      "description": "Is this value a JS DataView? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.",
      "directories": {},
      "_nodeVersion": "21.6.0",
      "dependencies": {
        "is-typed-array": "^1.1.13"
      },
      "publishConfig": {
        "ignore": [
          ".github/workflows"
        ]
      },
      "_hasShrinkwrap": false,
      "auto-changelog": {
        "output": "CHANGELOG.md",
        "template": "keepachangelog",
        "hideCredit": true,
        "unreleased": false,
        "commitLimit": false,
        "backfillLimit": false
      },
      "devDependencies": {
        "aud": "^2.0.4",
        "nyc": "^10.3.2",
        "tape": "^5.7.4",
        "eslint": "=8.8.0",
        "evalmd": "^0.0.19",
        "for-each": "^0.3.3",
        "npmignore": "^0.3.1",
        "in-publish": "^2.0.1",
        "typescript": "next",
        "@types/node": "^20.11.14",
        "@types/tape": "^5.6.4",
        "auto-changelog": "^2.4.0",
        "object-inspect": "^1.13.1",
        "@types/for-each": "^0.3.3",
        "has-tostringtag": "^1.0.2",
        "@types/call-bind": "^1.0.5",
        "es-value-fixtures": "^1.4.2",
        "make-arrow-function": "^1.2.0",
        "safe-publish-latest": "^2.0.0",
        "@ljharb/eslint-config": "^21.1.0",
        "@types/object-inspect": "^1.8.4",
        "available-typed-arrays": "^1.0.6",
        "make-generator-function": "^2.0.0",
        "@types/es-value-fixtures": "^1.4.4",
        "@types/make-arrow-function": "^1.2.2",
        "@types/make-generator-function": "^2.0.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/is-data-view_1.0.1_1706892707040_0.17690690783555563",
        "host": "s3://npm-registry-packages"
      }
    },
    "1.0.2": {
      "name": "is-data-view",
      "version": "1.0.2",
      "description": "Is this value a JS DataView? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.",
      "main": "index.js",
      "exports": {
        ".": "./index.js",
        "./package.json": "./package.json"
      },
      "types": "./index.d.ts",
      "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 .",
        "pretest": "npm run lint",
        "tests-only": "nyc tape 'test/**/*.js'",
        "test": "npm run tests-only",
        "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)\")\""
      },
      "funding": {
        "url": "https://github.com/sponsors/ljharb"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/inspect-js/is-data-view.git"
      },
      "keywords": [
        "javascript",
        "ecmascript",
        "dataview",
        "data",
        "view",
        "typedarray",
        "typedarrays"
      ],
      "author": {
        "name": "Jordan Harband",
        "email": "ljharb@gmail.com"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/inspect-js/is-data-view/issues"
      },
      "homepage": "https://github.com/inspect-js/is-data-view#readme",
      "dependencies": {
        "call-bound": "^1.0.2",
        "get-intrinsic": "^1.2.6",
        "is-typed-array": "^1.1.13"
      },
      "devDependencies": {
        "@ljharb/eslint-config": "^21.1.1",
        "@ljharb/tsconfig": "^0.2.2",
        "@types/call-bind": "^1.0.5",
        "@types/es-value-fixtures": "^1.4.4",
        "@types/for-each": "^0.3.3",
        "@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.6.5",
        "auto-changelog": "^2.5.0",
        "available-typed-arrays": "^1.0.7",
        "encoding": "^0.1.13",
        "es-value-fixtures": "^1.5.0",
        "eslint": "=8.8.0",
        "evalmd": "^0.0.19",
        "for-each": "^0.3.3",
        "has-tostringtag": "^1.0.2",
        "in-publish": "^2.0.1",
        "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"
      },
      "engines": {
        "node": ">= 0.4"
      },
      "auto-changelog": {
        "output": "CHANGELOG.md",
        "template": "keepachangelog",
        "unreleased": false,
        "commitLimit": false,
        "backfillLimit": false,
        "hideCredit": true
      },
      "publishConfig": {
        "ignore": [
          ".github/workflows"
        ]
      },
      "_id": "is-data-view@1.0.2",
      "gitHead": "e8a4943b72a33a075c6f9fd31f4e9e8a53e15b02",
      "_nodeVersion": "23.4.0",
      "_npmVersion": "10.9.2",
      "dist": {
        "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==",
        "shasum": "bae0a41b9688986c2188dda6657e56b8f9e63b8e",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/is-data-view/-/is-data-view-1.0.2.tgz",
        "fileCount": 12,
        "unpackedSize": 13459,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIBXxq6u9EMtJj/wfXliFxoyT8hxno0CzeXGoIblsuonyAiEAldY/Ll5JV8QS0mycCr+zY02rGGyoKtNsfUlBzT0Xuak="
          }
        ]
      },
      "_npmUser": {
        "name": "ljharb",
        "email": "ljharb@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "ljharb",
          "email": "ljharb@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages-npm-production",
        "tmp": "tmp/is-data-view_1.0.2_1733982233986_0.9136895077877312"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "is-data-view",
  "time": {
    "created": "2024-01-31T22:20:28.929Z",
    "modified": "2026-05-13T07:00:08.078Z",
    "1.0.0": "2024-01-31T22:20:29.100Z",
    "1.0.1": "2024-02-02T16:51:47.299Z",
    "1.0.2": "2024-12-12T05:43:54.162Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/inspect-js/is-data-view#readme"
}