{"id":15386152,"url":"https://github.com/jadjoubran/promyfill","last_synced_at":"2025-10-06T19:07:09.692Z","repository":{"id":149297036,"uuid":"87958688","full_name":"jadjoubran/promyfill","owner":"jadjoubran","description":"🔥 450Bytes Promise based conditional polyfill loader","archived":false,"fork":false,"pushed_at":"2017-07-28T14:56:19.000Z","size":7,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T20:08:03.832Z","etag":null,"topics":["conditional","polyfill","promise","promyfill"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jadjoubran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-04-11T16:57:03.000Z","updated_at":"2023-02-24T16:11:38.000Z","dependencies_parsed_at":"2023-04-05T06:32:12.705Z","dependency_job_id":null,"html_url":"https://github.com/jadjoubran/promyfill","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"bf05cb8d009c54d079d8a5130047f30db1eb03d0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jadjoubran/promyfill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadjoubran%2Fpromyfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadjoubran%2Fpromyfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadjoubran%2Fpromyfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadjoubran%2Fpromyfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jadjoubran","download_url":"https://codeload.github.com/jadjoubran/promyfill/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadjoubran%2Fpromyfill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278663399,"owners_count":26024393,"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-10-06T02:00:05.630Z","response_time":65,"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":["conditional","polyfill","promise","promyfill"],"created_at":"2024-10-01T14:47:59.996Z","updated_at":"2025-10-06T19:07:09.669Z","avatar_url":"https://github.com/jadjoubran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Promyfill\n\nPromyfill saves you from shipping polyfill code to all browsers.  \nYour own polyfill URL will be loaded only if needed.\n\n✅ Promyfill is ~450 Bytes.\n\n# Usage\n\n## Fetch example\n\n```javascript\nconst fetchPolyfill = 'https://rawgit.com/github/fetch/master/fetch.js';\n\npromyfill(window.fetch, fetchPolyfill).then((fetch) =\u003e {\n    //fetch is available (polyfill is fetched only if needed)\n    fetch('users.json');\n});\n```\n\n## Alternate usage\n\n```javascript\nconst fetchPolyfill = 'https://rawgit.com/github/fetch/master/fetch.js';\n\npromyfill('fetch' in window, fetchPolyfill).then(() =\u003e {\n    //fetch is available (polyfill is fetched only if needed)\n    fetch('users.json');\n});\n```\n\n## Intersection observer example\n\n```javascript\nconst ioPolyfill = 'https://rawgit.com/WICG/IntersectionObserver/gh-pages/polyfill/intersection-observer.js';\n\npromyfill('IntersectionObserver' in window, ioPolyfill).then(() =\u003e {\n    const io = new IntersectionObserver(() =\u003e {});\n})\n```\n\n# \"Promises\" support\n\nPromyfill relies on native promises available in most modern browsers, except a [few](http://caniuse.com/#search=promise) such as IE11, Android 4.4].  \nIn order to support these browsers, you can also include the tiny [promis](https://github.com/bramstein/promis) from bramstein\n\n# Video explanation\n\n[![Promyfill video](http://i.imgur.com/4Ds1Ttm.jpg)](https://www.youtube.com/watch?v=p84a0i34_08 \"Promyfill video\")\n\n# Feedback\n\nThis is a PWA experiment, usage \u0026 motivation detailed in this [Medium article](https://medium.com/@JoubranJad/progressive-web-app-experiment-promyfill-900faddda22f)  \nFor feedback or questions, please open a new issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjadjoubran%2Fpromyfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjadjoubran%2Fpromyfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjadjoubran%2Fpromyfill/lists"}