{"_id":"typed-array-buffer","_rev":"3744996","name":"typed-array-buffer","description":"Get the ArrayBuffer out of a TypedArray, robustly.","dist-tags":{"latest":"1.0.3"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2025-02-13T06:28:14.000Z","created":"2023-06-05T20:07:32.869Z","1.0.3":"2024-12-18T16:26:28.980Z","1.0.2":"2024-02-20T01:50:28.679Z","1.0.1":"2024-02-06T21:03:40.900Z","1.0.0":"2023-06-05T20:07:32.869Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/inspect-js/typed-array-buffer.git"},"versions":{"1.0.3":{"name":"typed-array-buffer","version":"1.0.3","description":"Get the ArrayBuffer out of a TypedArray, robustly.","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","lint":"eslint --ext=js,mjs .","postlint":"tsc && attw -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)\")\""},"repository":{"type":"git","url":"git+https://github.com/inspect-js/typed-array-buffer.git"},"keywords":["typed array","arraybuffer","buffer"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/inspect-js/typed-array-buffer/issues"},"homepage":"https://github.com/inspect-js/typed-array-buffer#readme","dependencies":{"call-bound":"^1.0.3","es-errors":"^1.3.0","is-typed-array":"^1.1.14"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.1","@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","available-typed-arrays":"^1.0.7","encoding":"^0.1.13","es-value-fixtures":"^1.5.0","eslint":"=8.8.0","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"]},"_id":"typed-array-buffer@1.0.3","gitHead":"348782b05f29ff3d7a4d947a56fc02c2d87fd83a","types":"./index.d.ts","_nodeVersion":"23.4.0","_npmVersion":"10.9.2","dist":{"shasum":"a72395450a4869ec033fd549371b47af3a2ee536","size":5117,"noattachment":false,"key":"/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/typed-array-buffer/download/typed-array-buffer-1.0.3.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/typed-array-buffer_1.0.3_1734539188836_0.5630432130075371"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-18T16:26:28.980Z","publish_time":1734539188980,"_source_registry_name":"default","_cnpm_publish_time":1734539188980},"1.0.2":{"name":"typed-array-buffer","version":"1.0.2","description":"Get the ArrayBuffer out of a TypedArray, robustly.","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","lint":"eslint --ext=js,mjs .","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"aud --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+https://github.com/ljharb/typed-array-buffer.git"},"keywords":["typed array","arraybuffer","buffer"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/typed-array-buffer/issues"},"homepage":"https://github.com/ljharb/typed-array-buffer#readme","dependencies":{"call-bind":"^1.0.7","es-errors":"^1.3.0","is-typed-array":"^1.1.13"},"devDependencies":{"@ljharb/eslint-config":"^21.1.0","@types/call-bind":"^1.0.5","@types/es-value-fixtures":"^1.4.4","@types/for-each":"^0.3.3","@types/object-inspect":"^1.8.4","@types/tape":"^5.6.4","aud":"^2.0.4","auto-changelog":"^2.4.0","available-typed-arrays":"^1.0.7","es-value-fixtures":"^1.4.2","eslint":"=8.8.0","for-each":"^0.3.3","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","object-inspect":"^1.13.1","safe-publish-latest":"^2.0.0","tape":"^5.7.5","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"]},"_id":"typed-array-buffer@1.0.2","gitHead":"6f046d73c65fb809f49c6bc59bbc99790a1c7d68","types":"./index.d.ts","_nodeVersion":"21.6.2","_npmVersion":"10.2.4","dist":{"shasum":"1867c5d83b20fcb5ccf32649e5e2fc7424474ff3","size":5561,"noattachment":false,"key":"/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/typed-array-buffer/download/typed-array-buffer-1.0.2.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typed-array-buffer_1.0.2_1708393828525_0.8465693206006739"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-20T01:50:28.679Z","publish_time":1708393828679,"_source_registry_name":"default","_cnpm_publish_time":1708393828679},"1.0.1":{"name":"typed-array-buffer","version":"1.0.1","description":"Get the ArrayBuffer out of a TypedArray, robustly.","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","lint":"eslint --ext=js,mjs .","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"aud --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+https://github.com/ljharb/typed-array-buffer.git"},"keywords":["typed array","arraybuffer","buffer"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/typed-array-buffer/issues"},"homepage":"https://github.com/ljharb/typed-array-buffer#readme","dependencies":{"call-bind":"^1.0.6","es-errors":"^1.3.0","is-typed-array":"^1.1.13"},"devDependencies":{"@ljharb/eslint-config":"^21.1.0","aud":"^2.0.4","auto-changelog":"^2.4.0","available-typed-arrays":"^1.0.6","es-value-fixtures":"^1.4.2","eslint":"=8.8.0","for-each":"^0.3.3","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","object-inspect":"^1.13.1","safe-publish-latest":"^2.0.0","tape":"^5.7.4"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"typed-array-buffer@1.0.1","gitHead":"5785bb17703bb3c7b23f1c03f64d9e67d248c694","_nodeVersion":"21.6.0","_npmVersion":"10.2.4","dist":{"shasum":"0608ffe6bca71bf15a45bff0ca2604107a1325f5","size":3973,"noattachment":false,"key":"/typed-array-buffer/-/typed-array-buffer-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/typed-array-buffer/download/typed-array-buffer-1.0.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typed-array-buffer_1.0.1_1707253420721_0.15254209721977996"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-06T21:03:40.900Z","publish_time":1707253420900,"_source_registry_name":"default","_cnpm_publish_time":1707253420900},"1.0.0":{"name":"typed-array-buffer","version":"1.0.0","description":"Get the ArrayBuffer out of a TypedArray, robustly.","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","lint":"eslint --ext=js,mjs .","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"aud --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+https://github.com/ljharb/typed-array-buffer.git"},"keywords":["typed array","arraybuffer","buffer"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/typed-array-buffer/issues"},"homepage":"https://github.com/ljharb/typed-array-buffer#readme","dependencies":{"call-bind":"^1.0.2","get-intrinsic":"^1.2.1","is-typed-array":"^1.1.10"},"devDependencies":{"@ljharb/eslint-config":"^21.1.0","aud":"^2.0.2","auto-changelog":"^2.4.0","available-typed-arrays":"^1.0.5","es-value-fixtures":"^1.4.2","eslint":"=8.8.0","for-each":"^0.3.3","in-publish":"^2.0.1","npmignore":"^0.3.0","nyc":"^10.3.2","object-inspect":"^1.12.3","safe-publish-latest":"^2.0.0","tape":"^5.6.3"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"gitHead":"1fa952dbceeb33953a837b49291071eba7d9eea7","_id":"typed-array-buffer@1.0.0","_nodeVersion":"20.2.0","_npmVersion":"9.6.6","dist":{"shasum":"18de3e7ed7974b0a729d3feecb94338d1472cd60","size":3656,"noattachment":false,"key":"/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/typed-array-buffer/download/typed-array-buffer-1.0.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typed-array-buffer_1.0.0_1685995652616_0.9161208853789808"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-06-05T20:07:32.869Z","publish_time":1685995652869,"_source_registry_name":"default","_cnpm_publish_time":1685995652869}},"readme":"# typed-array-buffer <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\nGet the ArrayBuffer out of a TypedArray, 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 `TypedArray.prototype.buffer` has been deleted after this module has loaded.\n\n## Example\n\n```js\nconst typedArrayBuffer = require('typed-array-buffer');\nconst assert = require('assert');\n\nconst arr = new Uint8Array(0);\nassert.equal(arr.buffer, typedArrayBuffer(arr));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/typed-array-buffer\n[npm-version-svg]: https://versionbadg.es/inspect-js/typed-array-buffer.svg\n[deps-svg]: https://david-dm.org/inspect-js/typed-array-buffer.svg\n[deps-url]: https://david-dm.org/inspect-js/typed-array-buffer\n[dev-deps-svg]: https://david-dm.org/inspect-js/typed-array-buffer/dev-status.svg\n[dev-deps-url]: https://david-dm.org/inspect-js/typed-array-buffer#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/typed-array-buffer.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/typed-array-buffer.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/typed-array-buffer.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=typed-array-buffer\n[codecov-image]: https://codecov.io/gh/inspect-js/typed-array-buffer/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/typed-array-buffer/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/typed-array-buffer\n[actions-url]: https://github.com/inspect-js/typed-array-buffer/actions\n","_attachments":{},"homepage":"https://github.com/inspect-js/typed-array-buffer#readme","bugs":{"url":"https://github.com/inspect-js/typed-array-buffer/issues"},"license":"MIT"}