{"id":27944905,"url":"https://github.com/es-shims/reflect.ownkeys","last_synced_at":"2025-05-07T12:55:06.670Z","repository":{"id":55512663,"uuid":"51182681","full_name":"es-shims/Reflect.ownKeys","owner":"es-shims","description":"ES2015 spec-compliant shim for Reflect.ownKeys","archived":false,"fork":false,"pushed_at":"2024-12-30T00:48:59.000Z","size":126,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-07T12:55:00.436Z","etag":null,"topics":["ecmascript","javascript","ownkeys","polyfill","reflect","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/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":"2016-02-06T00:27:28.000Z","updated_at":"2024-12-30T00:49:03.000Z","dependencies_parsed_at":"2024-06-18T17:06:33.890Z","dependency_job_id":"8dcc9e68-8e1b-437d-8cc9-fddc3f613ae6","html_url":"https://github.com/es-shims/Reflect.ownKeys","commit_stats":{"total_commits":74,"total_committers":2,"mean_commits":37.0,"dds":0.08108108108108103,"last_synced_commit":"d459377303dd51cfb2abb0e91368a22193d700bf"},"previous_names":["glenjamin/reflect.ownkeys"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2FReflect.ownKeys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2FReflect.ownKeys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2FReflect.ownKeys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2FReflect.ownKeys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/es-shims","download_url":"https://codeload.github.com/es-shims/Reflect.ownKeys/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252882789,"owners_count":21819154,"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","javascript","ownkeys","polyfill","reflect","shim"],"created_at":"2025-05-07T12:55:04.712Z","updated_at":"2025-05-07T12:55:06.656Z","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":"# reflect.ownkeys \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 ES2015 spec-compliant `Reflect.ownKeys` shim. Invoke its \"shim\" method to shim `Reflect.ownKeys` 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.es/ecma262/#sec-reflect.ownkeys).\n\nMost common usage:\n```js\nvar assert = require('assert');\nvar ownKeys = require('reflect.ownkeys');\n\nvar obj = { a: 1, b: 2, c: 3 };\nvar expected = ['a', 'b', 'c'];\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(sym, 'd');\n}\n\nassert.deepEqual(ownKeys(obj), expected);\n\nif (!Reflect.ownKeys) {\n\townKeys.shim();\n}\n\nassert.deepEqual(Reflect.ownKeys(obj), expected);\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.com/package/reflect.ownkeys\n[npm-version-svg]: https://versionbadg.es/es-shims/Reflect.ownKeys.svg\n[deps-svg]: https://david-dm.org/es-shims/Reflect.ownKeys.svg\n[deps-url]: https://david-dm.org/es-shims/Reflect.ownKeys\n[dev-deps-svg]: https://david-dm.org/es-shims/Reflect.ownKeys/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/Reflect.ownKeys#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/reflect.ownkeys.png?downloads=true\u0026stars=true\n[license-image]: https://img.shields.io/npm/l/reflect.ownkeys.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/reflect.ownkeys.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=reflect.ownkeys\n[codecov-image]: https://codecov.io/gh/es-shims/Reflect.ownKeys/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/Reflect.ownKeys/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Reflect.ownKeys\n[actions-url]: https://github.com/es-shims/Reflect.ownKeys/actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fes-shims%2Freflect.ownkeys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fes-shims%2Freflect.ownkeys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fes-shims%2Freflect.ownkeys/lists"}