{"id":17655951,"url":"https://github.com/sagi/globalthis","last_synced_at":"2026-01-20T21:33:13.789Z","repository":{"id":46936100,"uuid":"189980466","full_name":"sagi/globalThis","owner":"sagi","description":"A globalThis Polyfill for JavaScript Environments","archived":false,"fork":false,"pushed_at":"2023-01-03T23:17:25.000Z","size":835,"stargazers_count":1,"open_issues_count":11,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-03T22:01:51.710Z","etag":null,"topics":["cloudflare","globalthis","javascript","workers"],"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/sagi.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-06-03T10:01:05.000Z","updated_at":"2020-07-27T16:21:56.000Z","dependencies_parsed_at":"2023-02-01T13:02:13.605Z","dependency_job_id":null,"html_url":"https://github.com/sagi/globalThis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagi%2FglobalThis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagi%2FglobalThis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagi%2FglobalThis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagi%2FglobalThis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sagi","download_url":"https://codeload.github.com/sagi/globalThis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247591795,"owners_count":20963401,"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":["cloudflare","globalthis","javascript","workers"],"created_at":"2024-10-23T13:09:15.122Z","updated_at":"2026-01-20T21:33:13.783Z","avatar_url":"https://github.com/sagi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **`globalThis`** Polyfill\n\n[`@sagi.io/globalthis`](https://www.npmjs.com/package/@sagi.io/globalthis) is\na `globalThis` polyfill that is based on [Mathias Bynens](https://mathiasbynens.be/notes/globalthis)'s' implementation.\n\n[![CircleCI](https://circleci.com/gh/sagi/globalThis.svg?style=svg)](https://circleci.com/gh/sagi/globalThis)\n[![Coverage Status](https://coveralls.io/repos/github/sagi/globalThis/badge.svg?branch=master)](https://coveralls.io/github/sagi/globalThis?branch=master)\n[![MIT License](https://img.shields.io/npm/l/@sagi.io/globalthis.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n[![version](https://img.shields.io/npm/v/@sagi.io/globalthis.svg?style=flat-square)](http://npm.im/@sagi.io/globalthis)\n\n\n\n## Usage\n\nESM:\n\n~~~js\nimport '@sagi.io/globalthis'\n~~~\n\nCJS:\n\n~~~js\nrequire('@sagi.io/globalthis')\n~~~\n\nYou can now access `globalThis`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagi%2Fglobalthis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsagi%2Fglobalthis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagi%2Fglobalthis/lists"}