{ "manifest": { "name": "data-view-buffer", "version": "1.0.2", "description": "Get the ArrayBuffer out of a DataView, robustly.", "main": "index.js", "exports": { ".": "./index.js", "./package.json": "./package.json" }, "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 .", "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/data-view-buffer.git" }, "keywords": [ "javascript", "ecmascript", "dataview", "buffer", "robust" ], "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com" }, "license": "MIT", "bugs": { "url": "https://github.com/inspect-js/data-view-buffer/issues" }, "homepage": "https://github.com/inspect-js/data-view-buffer#readme", "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "is-data-view": "^1.0.2" }, "devDependencies": { "@ljharb/eslint-config": "^21.1.1", "@ljharb/tsconfig": "^0.2.2", "@types/es-value-fixtures": "^1.4.4", "@types/for-each": "^0.3.3", "@types/object-inspect": "^1.13.0", "@types/tape": "^5.8.0", "auto-changelog": "^2.5.0", "encoding": "^0.1.13", "es-value-fixtures": "^1.5.0", "eslint": "=8.8.0", "evalmd": "^0.0.19", "for-each": "^0.3.3", "in-publish": "^2.0.1", "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" }, "engines": { "node": ">= 0.4" }, "auto-changelog": { "output": "CHANGELOG.md", "template": "keepachangelog", "unreleased": false, "commitLimit": false, "backfillLimit": false, "hideCredit": true }, "publishConfig": { "ignore": [ ".github/workflows" ] }, "_registry": "npm", "_loc": "/home/josie/.cache/yarn/v6/npm-data-view-buffer-1.0.2-211a03ba95ecaf7798a8c7198d79536211f88570-integrity/node_modules/data-view-buffer/package.json", "readmeFilename": "README.md", "readme": "# data-view-buffer [![Version Badge][npm-version-svg]][package-url]\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\nGet the ArrayBuffer out of a DataView, robustly.\n\nThis will work in node <= 0.10 and < 0.11.4, where there's no prototype accessor, only a nonconfigurable own property.\nIt will also work in modern engines where `DataView.prototype.buffer` has been deleted after this module has loaded.\n\n## Example\n\n```js\nconst dataViewBuffer = require('data-view-buffer');\nconst assert = require('assert');\n\nconst ab = new ArrayBuffer(0);\nconst dv = new DataView(ab);\nassert.equal(dataViewBuffer(dv), ab);\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/data-view-buffer\n[npm-version-svg]: https://versionbadg.es/inspect-js/data-view-buffer.svg\n[deps-svg]: https://david-dm.org/inspect-js/data-view-buffer.svg\n[deps-url]: https://david-dm.org/inspect-js/data-view-buffer\n[dev-deps-svg]: https://david-dm.org/inspect-js/data-view-buffer/dev-status.svg\n[dev-deps-url]: https://david-dm.org/inspect-js/data-view-buffer#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/data-view-buffer.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/data-view-buffer.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/data-view-buffer.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=data-view-buffer\n[codecov-image]: https://codecov.io/gh/inspect-js/data-view-buffer/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/data-view-buffer/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/data-view-buffer\n[actions-url]: https://github.com/inspect-js/data-view-buffer/actions\n", "licenseText": "MIT License\n\nCopyright (c) 2023 Jordan Harband\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n" }, "artifacts": [], "remote": { "resolved": "https://registry.yarnpkg.com/data-view-buffer/-/data-view-buffer-1.0.2.tgz#211a03ba95ecaf7798a8c7198d79536211f88570", "type": "tarball", "reference": "https://registry.yarnpkg.com/data-view-buffer/-/data-view-buffer-1.0.2.tgz", "hash": "211a03ba95ecaf7798a8c7198d79536211f88570", "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", "registry": "npm", "packageName": "data-view-buffer", "cacheIntegrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ== sha1-IRoDupXsr3eYqMcZjXlTYhH4hXA=" }, "registry": "npm", "hash": "211a03ba95ecaf7798a8c7198d79536211f88570" }