{"id":18277624,"url":"https://github.com/inspect-js/array-buffer-byte-length","last_synced_at":"2025-04-05T04:30:39.344Z","repository":{"id":92578258,"uuid":"607836784","full_name":"inspect-js/array-buffer-byte-length","owner":"inspect-js","description":"Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.","archived":false,"fork":false,"pushed_at":"2024-12-20T01:21:53.000Z","size":41,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T12:41:33.060Z","etag":null,"topics":["arraybuffer","byte","bytelength","es-shim","es-shims","length","polyfill","shim"],"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,"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":"2023-02-28T19:22:10.000Z","updated_at":"2024-12-20T01:21:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"f15c86f2-3772-480d-a6c5-70ec3aed37a7","html_url":"https://github.com/inspect-js/array-buffer-byte-length","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"b15321cf546dae5d3bc2b354fb8e2a4629d6afb3"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Farray-buffer-byte-length","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Farray-buffer-byte-length/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Farray-buffer-byte-length/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Farray-buffer-byte-length/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inspect-js","download_url":"https://codeload.github.com/inspect-js/array-buffer-byte-length/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":["arraybuffer","byte","bytelength","es-shim","es-shims","length","polyfill","shim"],"created_at":"2024-11-05T12:19:47.824Z","updated_at":"2025-04-05T04:30:37.063Z","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":"# array-buffer-byte-length \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\nGet the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.\n\n## Example\n\n```js\nconst assert = require('assert');\nconst byteLength = require('array-buffer-byte-length');\n\nassert.equal(byteLength([]), NaN, 'an array is not an ArrayBuffer, yields NaN');\n\nassert.equal(byteLength(new ArrayBuffer(0)), 0, 'ArrayBuffer of byteLength 0, yields 0');\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/array-buffer-byte-length\n[npm-version-svg]: https://versionbadg.es/inspect-js/array-buffer-byte-length.svg\n[deps-svg]: https://david-dm.org/inspect-js/array-buffer-byte-length.svg\n[deps-url]: https://david-dm.org/inspect-js/array-buffer-byte-length\n[dev-deps-svg]: https://david-dm.org/inspect-js/array-buffer-byte-length/dev-status.svg\n[dev-deps-url]: https://david-dm.org/inspect-js/array-buffer-byte-length#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/array-buffer-byte-length.png?downloads=true\u0026stars=true\n[license-image]: https://img.shields.io/npm/l/array-buffer-byte-length.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/array-buffer-byte-length.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=array-buffer-byte-length\n[codecov-image]: https://codecov.io/gh/inspect-js/array-buffer-byte-length/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/array-buffer-byte-length/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/array-buffer-byte-length\n[actions-url]: https://github.com/inspect-js/array-buffer-byte-length/actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Farray-buffer-byte-length","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finspect-js%2Farray-buffer-byte-length","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Farray-buffer-byte-length/lists"}