{"id":18277680,"url":"https://github.com/inspect-js/is-shared-array-buffer","last_synced_at":"2025-04-05T04:30:44.755Z","repository":{"id":57277586,"uuid":"344636536","full_name":"inspect-js/is-shared-array-buffer","owner":"inspect-js","description":"Is this value a JS SharedArrayBuffer? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.","archived":false,"fork":false,"pushed_at":"2024-12-18T16:27:54.000Z","size":84,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-20T21:44:18.051Z","etag":null,"topics":["array","buffer","ecmascript","is","javascript","shared","sharedarraybuffer"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inspect-js.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":["ljharb"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":"npm/deep-equal","community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-03-04T23:25:07.000Z","updated_at":"2024-12-18T16:27:58.000Z","dependencies_parsed_at":"2024-03-11T06:37:39.742Z","dependency_job_id":null,"html_url":"https://github.com/inspect-js/is-shared-array-buffer","commit_stats":{"total_commits":31,"total_committers":1,"mean_commits":31.0,"dds":0.0,"last_synced_commit":"38a6d721588e6e4db83fd24e63b8a19fd4398123"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-shared-array-buffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-shared-array-buffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-shared-array-buffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-shared-array-buffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inspect-js","download_url":"https://codeload.github.com/inspect-js/is-shared-array-buffer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289382,"owners_count":20914463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["array","buffer","ecmascript","is","javascript","shared","sharedarraybuffer"],"created_at":"2024-11-05T12:20:11.900Z","updated_at":"2025-04-05T04:30:42.741Z","avatar_url":"https://github.com/inspect-js.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ljharb","https://tidelift.com/funding/github/npm/deep-equal"],"categories":[],"sub_categories":[],"readme":"# is-shared-array-buffer \u003csup\u003e[![Version Badge][npm-version-svg]][package-url]\u003c/sup\u003e\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(() =\u003e {})));\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\u0026stars=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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Fis-shared-array-buffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finspect-js%2Fis-shared-array-buffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Fis-shared-array-buffer/lists"}