{"id":18277649,"url":"https://github.com/inspect-js/is-array-buffer","last_synced_at":"2025-04-05T04:30:41.417Z","repository":{"id":65997473,"uuid":"45977026","full_name":"inspect-js/is-array-buffer","owner":"inspect-js","description":"Is this value a JS ArrayBuffer? 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-03-11T04:44:12.000Z","size":380,"stargazers_count":13,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-29T20:37:09.088Z","etag":null,"topics":["array","arraybuffer","buffer","ecmascript","is","javascript"],"latest_commit_sha":null,"homepage":"https://npmjs.com/is-array-buffer","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,"publiccode":null,"codemeta":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":"2015-11-11T11:10:39.000Z","updated_at":"2024-08-28T17:42:49.000Z","dependencies_parsed_at":"2024-03-11T05:46:21.910Z","dependency_job_id":null,"html_url":"https://github.com/inspect-js/is-array-buffer","commit_stats":{"total_commits":42,"total_committers":4,"mean_commits":10.5,"dds":"0.47619047619047616","last_synced_commit":"87a13652c4361a9d1ae8cbcde27fc836e3de6d32"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-array-buffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-array-buffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-array-buffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-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-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","arraybuffer","buffer","ecmascript","is","javascript"],"created_at":"2024-11-05T12:19:54.183Z","updated_at":"2025-04-05T04:30:39.325Z","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-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 ArrayBuffer? 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 isArrayBuffer = require('is-array-buffer');\n\nassert(!isArrayBuffer(function () {}));\nassert(!isArrayBuffer(null));\nassert(!isArrayBuffer(function* () { yield 42; return Infinity; });\nassert(!isArrayBuffer(Symbol('foo')));\nassert(!isArrayBuffer(1n));\nassert(!isArrayBuffer(Object(1n)));\n\nassert(!isArrayBuffer(new Set()));\nassert(!isArrayBuffer(new WeakSet()));\nassert(!isArrayBuffer(new Map()));\nassert(!isArrayBuffer(new WeakMap()));\nassert(!isArrayBuffer(new WeakRef({})));\nassert(!isArrayBuffer(new FinalizationRegistry(() =\u003e {})));\nassert(!isArrayBuffer(new SharedArrayBuffer()));\n\nassert(isArrayBuffer(new ArrayBuffer()));\n\nclass MyArrayBuffer extends ArrayBuffer {}\nassert(isArrayBuffer(new MyArrayBuffer()));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/is-array-buffer\n[npm-version-svg]: https://versionbadg.es/inspect-js/is-array-buffer.svg\n[deps-svg]: https://david-dm.org/inspect-js/is-array-buffer.svg\n[deps-url]: https://david-dm.org/inspect-js/is-array-buffer\n[dev-deps-svg]: https://david-dm.org/inspect-js/is-array-buffer/dev-status.svg\n[dev-deps-url]: https://david-dm.org/inspect-js/is-array-buffer#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/is-array-buffer.png?downloads=true\u0026stars=true\n[license-image]: https://img.shields.io/npm/l/is-array-buffer.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/is-array-buffer.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=is-array-buffer\n[codecov-image]: https://codecov.io/gh/inspect-js/is-array-buffer/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/is-array-buffer/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-array-buffer\n[actions-url]: https://github.com/inspect-js/is-array-buffer/actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Fis-array-buffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finspect-js%2Fis-array-buffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Fis-array-buffer/lists"}