{"id":13772118,"url":"https://github.com/es-shims/Object.entries","last_synced_at":"2025-05-11T04:31:08.466Z","repository":{"id":56075922,"uuid":"41803787","full_name":"es-shims/Object.entries","owner":"es-shims","description":"ES2017 spec-compliant shim for Object.entries","archived":false,"fork":false,"pushed_at":"2024-03-18T21:22:46.000Z","size":145,"stargazers_count":57,"open_issues_count":1,"forks_count":9,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-03T03:12:13.714Z","etag":null,"topics":["ecmascript","entries","javascript","keys","object","polyfill","shim","values"],"latest_commit_sha":null,"homepage":"https://github.com/tc39/proposal-object-values-entries","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":"2015-09-02T13:51:26.000Z","updated_at":"2024-02-07T12:11:48.000Z","dependencies_parsed_at":"2024-02-12T04:34:56.405Z","dependency_job_id":"29cde21f-c7da-4a69-9bcc-9c3993929b41","html_url":"https://github.com/es-shims/Object.entries","commit_stats":{"total_commits":120,"total_committers":1,"mean_commits":120.0,"dds":0.0,"last_synced_commit":"84086e61918239c33088e8af9f07990255868782"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2FObject.entries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2FObject.entries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2FObject.entries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2FObject.entries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/es-shims","download_url":"https://codeload.github.com/es-shims/Object.entries/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253518941,"owners_count":21921074,"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":["ecmascript","entries","javascript","keys","object","polyfill","shim","values"],"created_at":"2024-08-03T17:01:00.236Z","updated_at":"2025-05-11T04:31:07.927Z","avatar_url":"https://github.com/es-shims.png","language":"JavaScript","readme":"# object.entries \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[![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\nAn ES2017 spec-compliant `Object.entries` shim. Invoke its \"shim\" method to shim `Object.entries` if it is unavailable or noncompliant.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://tc39.github.io/ecma262/#sec-object.entries).\n\nMost common usage:\n```js\nvar assert = require('assert');\nvar entries = require('object.entries');\n\nvar obj = { a: 1, b: 2, c: 3 };\nvar expected = [['a', 1], ['b', 2], ['c', 3]];\n\nif (typeof Symbol === 'function' \u0026\u0026 typeof Symbol() === 'symbol') {\n\t// for environments with Symbol support\n\tvar sym = Symbol();\n\tobj[sym] = 4;\n\tobj.d = sym;\n\texpected.push(['d', sym]);\n}\n\nassert.deepEqual(entries(obj), expected);\n\nif (!Object.entries) {\n\tentries.shim();\n}\n\nassert.deepEqual(Object.entries(obj), expected);\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.com/package/object.entries\n[npm-version-svg]: https://versionbadg.es/es-shims/Object.entries.svg\n[deps-svg]: https://david-dm.org/es-shims/Object.entries.svg\n[deps-url]: https://david-dm.org/es-shims/Object.entries\n[dev-deps-svg]: https://david-dm.org/es-shims/Object.entries/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/Object.entries#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/object.entries.png?downloads=true\u0026stars=true\n[license-image]: https://img.shields.io/npm/l/object.entries.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/object.entries.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=object.entries\n[codecov-image]: https://codecov.io/gh/es-shims/Object.entries/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/Object.entries/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Object.entries\n[actions-url]: https://github.com/es-shims/Object.entries/actions\n","funding_links":["https://github.com/sponsors/ljharb","https://tidelift.com/funding/github/npm/es5-shim"],"categories":["Objects"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fes-shims%2FObject.entries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fes-shims%2FObject.entries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fes-shims%2FObject.entries/lists"}