{"id":13659740,"url":"https://github.com/es-shims/es7-shim","last_synced_at":"2025-10-22T20:06:58.756Z","repository":{"id":16189348,"uuid":"18935962","full_name":"es-shims/es7-shim","owner":"es-shims","description":"ECMAScript 7 compatibility shims for legacy JavaScript engines ","archived":true,"fork":false,"pushed_at":"2019-11-11T12:47:04.000Z","size":123,"stargazers_count":172,"open_issues_count":3,"forks_count":32,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-04-02T10:04:28.044Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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}},"created_at":"2014-04-19T07:12:35.000Z","updated_at":"2025-03-05T16:30:28.000Z","dependencies_parsed_at":"2022-08-30T14:51:28.720Z","dependency_job_id":null,"html_url":"https://github.com/es-shims/es7-shim","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2Fes7-shim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2Fes7-shim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2Fes7-shim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2Fes7-shim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/es-shims","download_url":"https://codeload.github.com/es-shims/es7-shim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250654146,"owners_count":21465821,"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":[],"created_at":"2024-08-02T05:01:11.798Z","updated_at":"2025-10-22T20:06:58.428Z","avatar_url":"https://github.com/es-shims.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Polyfill"],"sub_categories":["React Components"],"readme":"# es7-shim \u003csup\u003e[![Version Badge][2]][1]\u003c/sup\u003e\n\n[![npm badge][9]][1]\n\n[![Build Status][3]][4] [![dependency status][5]][6]  [![dev dependency status][7]][8]\n\nECMAScript 7 compatibility shims for legacy JavaScript engines.\n\n`es7-shim.js` exports an object that contains shims that can be used to monkeypatch a JavaScript context to contain all ECMAScript 7 methods that can be faithfully emulated with a legacy JavaScript engine.\n`es7-shim.browser.js` calls the “shim” method on the export of `es7-shim.js` which actually modifies the global object, including replacing native methods when engine-specific bugs exist.\nPublished on npm are `dist/es7-shim.js` and `dist/es7-shim.min.js` which are pre-prepared browserified versions of `es7-shim.browser.js`.\n\n## Source for shims\nEvery shim in this module is a separate, independent `npm` module.\nTo be included, all shims must have a \".shim()\" method that installs the shim into the global object whenever it is necessary. It should also handle any engine-specific specific to the method it is shimming.\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n## Shims\n\n`Array.prototype`:\n * `includes` [standalone][npm-includes-url]\n\n`Object`:\n * `getOwnPropertyDescriptors` [standalone][npm-get-descriptors-url]\n * `entries` [standalone][object-entries-url]\n * `values` [standalone][object-values-url]\n\n`String.prototype`:\n * `at` [standalone][string-at-url]\n * `trimLeft` [standalone][string-trimleft-url]\n * `trimRight` [standalone][string-trimright-url]\n * `padStart` [standalone][string-padstart-url]\n * `padEnd` [standalone][string-padend-url]\n\n## Shams\n\n* :warning: None yet!\n\n[1]: https://npmjs.org/package/es7-shim\n[2]: http://versionbadg.es/es-shims/es7-shim.svg\n[3]: https://travis-ci.org/es-shims/es7-shim.svg\n[4]: https://travis-ci.org/es-shims/es7-shim\n[5]: https://david-dm.org/es-shims/es7-shim.png\n[6]: https://david-dm.org/es-shims/es7-shim\n[7]: https://david-dm.org/es-shims/es7-shim/dev-status.png\n[8]: https://david-dm.org/es-shims/es7-shim#info=devDependencies\n[9]: https://nodei.co/npm/es7-shim.png?downloads=true\u0026stars=true\n[npm-includes-url]: https://www.npmjs.com/package/array-includes\n[npm-get-descriptors-url]: https://www.npmjs.com/package/object.getownpropertydescriptors\n[map-tojson-url]: https://www.npmjs.com/package/map-tojson\n[set-tojson-url]: https://www.npmjs.com/package/set-tojson\n[string-at-url]: https://www.npmjs.com/package/string-at\n[object-entries-url]: https://www.npmjs.com/package/object.entries\n[object-values-url]: https://www.npmjs.com/package/object.values\n[string-trimleft-url]: https://www.npmjs.com/package/string.prototype.trimleft\n[string-trimright-url]: https://www.npmjs.com/package/string.prototype.trimright\n[string-padstart-url]: https://www.npmjs.com/package/string.prototype.padstart\n[string-padend-url]: https://www.npmjs.com/package/string.prototype.padend\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fes-shims%2Fes7-shim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fes-shims%2Fes7-shim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fes-shims%2Fes7-shim/lists"}