{"_id":"is-shared-array-buffer","_rev":"3744978","name":"is-shared-array-buffer","description":"Is this value a JS SharedArrayBuffer?","dist-tags":{"latest":"1.0.4"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2025-02-13T06:28:09.000Z","created":"2021-03-05T00:22:34.909Z","1.0.4":"2024-12-18T16:27:56.450Z","1.0.3":"2024-02-21T07:10:32.429Z","1.0.2":"2022-04-02T04:42:56.440Z","1.0.1":"2021-03-05T00:23:31.533Z","1.0.0":"2021-03-05T00:22:34.909Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"},"repository":{"type":"git","url":"git+https://github.com/inspect-js/is-shared-array-buffer.git"},"versions":{"1.0.4":{"name":"is-shared-array-buffer","version":"1.0.4","author":{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"},"funding":{"url":"https://github.com/sponsors/ljharb"},"description":"Is this value a JS SharedArrayBuffer?","license":"MIT","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 -p . && 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/is-shared-array-buffer.git"},"keywords":["javascript","ecmascript","is","sharedarraybuffer","shared","array","buffer"],"bugs":{"url":"https://github.com/inspect-js/is-shared-array-buffer/issues"},"homepage":"https://github.com/inspect-js/is-shared-array-buffer#readme","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/node":"^20.17.10","@types/object-inspect":"^1.13.0","@types/tape":"^5.7.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"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"dependencies":{"call-bound":"^1.0.3"},"publishConfig":{"ignore":[".github/workflows"]},"engines":{"node":">= 0.4"},"_id":"is-shared-array-buffer@1.0.4","gitHead":"ded256fbfa78fdc7954959671930e71417f4fa7c","types":"./index.d.ts","_nodeVersion":"23.4.0","_npmVersion":"10.9.2","dist":{"shasum":"9b67844bd9b7f246ba0708c3a93e34269c774f6f","size":6324,"noattachment":false,"key":"/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-shared-array-buffer/download/is-shared-array-buffer-1.0.4.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-shared-array-buffer_1.0.4_1734539276273_0.05339346634983633"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-18T16:27:56.450Z","publish_time":1734539276450,"_source_registry_name":"default","_cnpm_publish_time":1734539276450},"1.0.3":{"name":"is-shared-array-buffer","version":"1.0.3","author":{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"},"funding":{"url":"https://github.com/sponsors/ljharb"},"description":"Is this value a JS SharedArrayBuffer?","license":"MIT","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 -p .","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/inspect-js/is-shared-array-buffer.git"},"keywords":["javascript","ecmascript","is","sharedarraybuffer","shared","array","buffer"],"bugs":{"url":"https://github.com/inspect-js/is-shared-array-buffer/issues"},"homepage":"https://github.com/inspect-js/is-shared-array-buffer#readme","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/node":"^20.11.19","@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"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"dependencies":{"call-bind":"^1.0.7"},"publishConfig":{"ignore":[".github/workflows"]},"engines":{"node":">= 0.4"},"_id":"is-shared-array-buffer@1.0.3","gitHead":"93ecae39e6b6e9a51f5b0ea1332915f22599baf2","types":"./index.d.ts","_nodeVersion":"21.6.2","_npmVersion":"10.2.4","dist":{"shasum":"1237f1cba059cdb62431d378dcc37d9680181688","size":6923,"noattachment":false,"key":"/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-shared-array-buffer/download/is-shared-array-buffer-1.0.3.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-shared-array-buffer_1.0.3_1708499432237_0.41860964983382076"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-21T07:10:32.429Z","publish_time":1708499432429,"_source_registry_name":"default","_cnpm_publish_time":1708499432429},"1.0.2":{"name":"is-shared-array-buffer","version":"1.0.2","author":{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"},"funding":{"url":"https://github.com/sponsors/ljharb"},"description":"Is this value a JS SharedArrayBuffer?","license":"MIT","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"scripts":{"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/inspect-js/is-shared-array-buffer.git"},"keywords":["javascript","ecmascript","is","sharedarraybuffer","shared","array","buffer"],"bugs":{"url":"https://github.com/inspect-js/is-shared-array-buffer/issues"},"homepage":"https://github.com/inspect-js/is-shared-array-buffer#readme","devDependencies":{"@ljharb/eslint-config":"^20.2.3","aud":"^2.0.0","auto-changelog":"^2.4.0","es-value-fixtures":"^1.2.1","eslint":"=8.8.0","for-each":"^0.3.3","nyc":"^10.3.2","object-inspect":"^1.12.0","safe-publish-latest":"^2.0.0","tape":"^5.5.2"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"dependencies":{"call-bind":"^1.0.2"},"gitHead":"0a8c0a3a53fa882f24f4e378b8c9ed30af35e0e4","_id":"is-shared-array-buffer@1.0.2","_nodeVersion":"17.8.0","_npmVersion":"8.6.0","dist":{"shasum":"8f259c573b60b6a32d4058a1a07430c0a7344c79","size":4683,"noattachment":false,"key":"/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-shared-array-buffer/download/is-shared-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/is-shared-array-buffer_1.0.2_1648874576264_0.39821211744790985"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-02T04:43:01.962Z","publish_time":1648874576440,"_cnpm_publish_time":1648874576440},"1.0.1":{"name":"is-shared-array-buffer","version":"1.0.1","author":{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"},"funding":{"url":"https://github.com/sponsors/ljharb"},"description":"Is this value a JS SharedArrayBuffer?","license":"MIT","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"scripts":{"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/inspect-js/is-shared-array-buffer.git"},"keywords":["javascript","ecmascript","is","sharedarraybuffer","shared","array","buffer"],"bugs":{"url":"https://github.com/inspect-js/is-shared-array-buffer/issues"},"homepage":"https://github.com/inspect-js/is-shared-array-buffer#readme","devDependencies":{"@ljharb/eslint-config":"^17.5.1","aud":"^1.1.4","auto-changelog":"^2.2.1","es-value-fixtures":"^1.2.1","eslint":"^7.21.0","for-each":"^0.3.3","nyc":"^10.3.2","object-inspect":"^1.9.0","tape":"^5.2.2"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"gitHead":"ecf0918b796aa7b731e92b596657f5e256901f1a","_id":"is-shared-array-buffer@1.0.1","_nodeVersion":"15.10.0","_npmVersion":"7.5.6","dist":{"shasum":"97b0c85fbdacb59c9c446fe653b82cf2b5b7cfe6","size":4047,"noattachment":false,"key":"/is-shared-array-buffer/-/is-shared-array-buffer-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-shared-array-buffer/download/is-shared-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/is-shared-array-buffer_1.0.1_1614903811399_0.26423357095816535"},"_hasShrinkwrap":false,"publish_time":1614903811533,"_cnpm_publish_time":1614903811533},"1.0.0":{"name":"is-shared-array-buffer","version":"1.0.0","author":{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"},"funding":{"url":"https://github.com/sponsors/ljharb"},"description":"Is this value a JS SharedArrayBuffer?","license":"MIT","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"scripts":{"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/inspect-js/is-shared-array-buffer.git"},"keywords":["javascript","ecmascript","is","sharedarraybuffer","shared","array","buffer"],"bugs":{"url":"https://github.com/inspect-js/is-shared-array-buffer/issues"},"homepage":"https://github.com/inspect-js/is-shared-array-buffer#readme","devDependencies":{"@ljharb/eslint-config":"^17.5.1","aud":"^1.1.4","auto-changelog":"^2.2.1","es-value-fixtures":"^1.2.1","eslint":"^7.21.0","for-each":"^0.3.3","nyc":"^10.3.2","object-inspect":"^1.9.0","tape":"^5.2.2"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"gitHead":"627539ca0d70d4581737a0e07c76dba23e62a142","_id":"is-shared-array-buffer@1.0.0","_nodeVersion":"15.10.0","_npmVersion":"7.5.6","dist":{"shasum":"680348bad562af4b988a0fa78c6b2da6218fd9f4","size":3983,"noattachment":false,"key":"/is-shared-array-buffer/-/is-shared-array-buffer-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-shared-array-buffer/download/is-shared-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/is-shared-array-buffer_1.0.0_1614903754788_0.7984358586456366"},"_hasShrinkwrap":false,"publish_time":1614903754909,"_cnpm_publish_time":1614903754909}},"readme":"# is-shared-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\nIs this value a JS SharedArrayBuffer? 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 assert = require('assert');\nvar isSharedArrayBuffer = require('is-shared-array-buffer');\n\nassert(!isSharedArrayBuffer(function () {}));\nassert(!isSharedArrayBuffer(null));\nassert(!isSharedArrayBuffer(function* () { yield 42; return Infinity; });\nassert(!isSharedArrayBuffer(Symbol('foo')));\nassert(!isSharedArrayBuffer(1n));\nassert(!isSharedArrayBuffer(Object(1n)));\n\nassert(!isSharedArrayBuffer(new Set()));\nassert(!isSharedArrayBuffer(new WeakSet()));\nassert(!isSharedArrayBuffer(new Map()));\nassert(!isSharedArrayBuffer(new WeakMap()));\nassert(!isSharedArrayBuffer(new WeakRef({})));\nassert(!isSharedArrayBuffer(new FinalizationRegistry(() => {})));\nassert(!isSharedArrayBuffer(new ArrayBuffer()));\n\nassert(isSharedArrayBuffer(new SharedArrayBuffer()));\n\nclass MySharedArrayBuffer extends SharedArrayBuffer {}\nassert(isSharedArrayBuffer(new MySharedArrayBuffer()));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/is-shared-array-buffer\n[npm-version-svg]: https://versionbadg.es/inspect-js/is-shared-array-buffer.svg\n[deps-svg]: https://david-dm.org/inspect-js/is-shared-array-buffer.svg\n[deps-url]: https://david-dm.org/inspect-js/is-shared-array-buffer\n[dev-deps-svg]: https://david-dm.org/inspect-js/is-shared-array-buffer/dev-status.svg\n[dev-deps-url]: https://david-dm.org/inspect-js/is-shared-array-buffer#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/is-shared-array-buffer.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/is-shared-array-buffer.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/is-shared-array-buffer.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=is-shared-array-buffer\n[codecov-image]: https://codecov.io/gh/inspect-js/is-shared-array-buffer/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/is-shared-array-buffer/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-shared-array-buffer\n[actions-url]: https://github.com/inspect-js/is-shared-array-buffer/actions\n","_attachments":{},"homepage":"https://github.com/inspect-js/is-shared-array-buffer#readme","bugs":{"url":"https://github.com/inspect-js/is-shared-array-buffer/issues"},"license":"MIT"}