{"_id":"is-shared-array-buffer","_rev":"189872","name":"is-shared-array-buffer","description":"Is this value a JS SharedArrayBuffer?","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2023-03-20T07:17:44.000Z","created":"2021-03-05T00:22:34.909Z","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.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://name.csiicloud.com:7001/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://name.csiicloud.com:7001/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,"_cnpmcore_publish_time":"2021-12-13T08:09:35.100Z"},"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://name.csiicloud.com:7001/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,"_cnpmcore_publish_time":"2021-12-13T08:09:35.382Z"}},"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[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-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"}