{"id":31425064,"url":"https://github.com/es-shims/arraybuffer.prototype.detached","last_synced_at":"2025-10-11T19:01:49.297Z","repository":{"id":65661061,"uuid":"590635852","full_name":"es-shims/ArrayBuffer.prototype.detached","owner":"es-shims","description":"ES Proposal spec-compliant shim for ArrayBuffer.prototype.detached","archived":false,"fork":false,"pushed_at":"2025-01-02T20:07:31.000Z","size":48,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-08T23:38:54.244Z","etag":null,"topics":["array","arraybuffer","buffer","detached","ecmascript","es-shim","es-shims","javascript","polyfill","shim"],"latest_commit_sha":null,"homepage":"https://tc39.es/proposal-arraybuffer-transfer/#sec-get-arraybuffer.prototype.detached","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/es-shims.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"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/es5-shim","community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-01-18T21:22:27.000Z","updated_at":"2025-01-02T20:07:34.000Z","dependencies_parsed_at":"2025-02-22T16:51:40.578Z","dependency_job_id":null,"html_url":"https://github.com/es-shims/ArrayBuffer.prototype.detached","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"865747aa29a450a77795ccde3d82af67f0da9f34"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/es-shims/ArrayBuffer.prototype.detached","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2FArrayBuffer.prototype.detached","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2FArrayBuffer.prototype.detached/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2FArrayBuffer.prototype.detached/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2FArrayBuffer.prototype.detached/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/es-shims","download_url":"https://codeload.github.com/es-shims/ArrayBuffer.prototype.detached/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2FArrayBuffer.prototype.detached/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277632373,"owners_count":25850734,"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","status":"online","status_checked_at":"2025-09-30T02:00:09.208Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","detached","ecmascript","es-shim","es-shims","javascript","polyfill","shim"],"created_at":"2025-09-30T04:55:19.789Z","updated_at":"2025-09-30T04:55:23.718Z","avatar_url":"https://github.com/es-shims.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ljharb","https://tidelift.com/funding/github/npm/es5-shim"],"categories":[],"sub_categories":[],"readme":"ArrayBuffer.prototype.detached \u003csup\u003e[![Version Badge][npm-version-svg]][package-url]\u003c/sup\u003e\n\n[![Build Status][travis-svg]][travis-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\n[![browser support][testling-svg]][testling-url]\n\nAn ES6 spec-compliant `ArrayBuffer.prototype.detached` shim. Invoke its \"shim\" method to shim ArrayBuffer.prototype.detached if it is unavailable.\n*Note*: `ArrayBuffer#detached` requires a true ES5 environment - specifically, one with ES5 getters.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES5-supported environment and complies with the proposed [spec](https://tc39.es/proposal-arraybuffer-transfer/#sec-get-arraybuffer.prototype.detached).\n\nMost common usage:\n```js\nvar detached = require('arraybuffer.prototype.detached');\n\nassert(detached(new ArrayBuffer('a') === false);\n\nif (!ArrayBuffer.prototype.detached) {\n\tdetached.shim();\n}\n\nassert(new ArrayBuffer('a').detached, false);\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.com/package/arraybuffer.prototype.detached\n[npm-version-svg]: http://versionbadg.es/es-shims/ArrayBuffer.prototype.detached.svg\n[travis-svg]: https://travis-ci.org/es-shims/ArrayBuffer.prototype.detached.svg\n[travis-url]: https://travis-ci.org/es-shims/ArrayBuffer.prototype.detached\n[deps-svg]: https://david-dm.org/es-shims/ArrayBuffer.prototype.detached.svg\n[deps-url]: https://david-dm.org/es-shims/ArrayBuffer.prototype.detached\n[dev-deps-svg]: https://david-dm.org/es-shims/ArrayBuffer.prototype.detached/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/ArrayBuffer.prototype.detached#info=devDependencies\n[testling-svg]: https://ci.testling.com/es-shims/ArrayBuffer.prototype.detached.png\n[testling-url]: https://ci.testling.com/es-shims/ArrayBuffer.prototype.detached\n[npm-badge-png]: https://nodei.co/npm/arraybuffer.prototype.detached.png?downloads=true\u0026stars=true\n[license-image]: http://img.shields.io/npm/l/arraybuffer.prototype.detached.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/arraybuffer.prototype.detached.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=arraybuffer.prototype.detached\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fes-shims%2Farraybuffer.prototype.detached","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fes-shims%2Farraybuffer.prototype.detached","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fes-shims%2Farraybuffer.prototype.detached/lists"}