{"id":15494181,"url":"https://github.com/johanholmerin/nested-worker","last_synced_at":"2025-04-22T20:22:50.848Z","repository":{"id":119512145,"uuid":"148313205","full_name":"johanholmerin/nested-worker","owner":"johanholmerin","description":"Nested Worker polyfill for Safari","archived":false,"fork":false,"pushed_at":"2021-10-09T08:04:21.000Z","size":37,"stargazers_count":16,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T18:36:27.926Z","etag":null,"topics":["dedicated-workers","subworkers","webworker","workers"],"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/johanholmerin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-11T12:24:29.000Z","updated_at":"2024-01-19T02:30:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"42391489-ee10-4a4d-8240-7c1888e5e080","html_url":"https://github.com/johanholmerin/nested-worker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johanholmerin%2Fnested-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johanholmerin%2Fnested-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johanholmerin%2Fnested-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johanholmerin%2Fnested-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johanholmerin","download_url":"https://codeload.github.com/johanholmerin/nested-worker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250316430,"owners_count":21410542,"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":["dedicated-workers","subworkers","webworker","workers"],"created_at":"2024-10-02T08:12:08.153Z","updated_at":"2025-04-22T20:22:50.842Z","avatar_url":"https://github.com/johanholmerin.png","language":"JavaScript","readme":"# Nested Worker Polyfill\n\nNested Worker polyfill for Safari. Uses MessageChannel to avoid\nhaving to send all messages through the main thread. Does not support Shared\nWorkers.\n\n## Install\n\n```sh\nyarn add git+https://github.com/johanholmerin/nested-worker#semver:^1.0.0\n```\n\n## Usage\n\nImport the polyfill in the main thread before creating any worker, and as the\nfirst statement in all workers.\n\n```javascript\n// in window\nimport 'nested-worker/window.js';\n\nconst worker = new Worker('worker.js', {\n  type: 'module' // or transpile modules\n});\n```\n\n```javascript\n// worker.js\nimport 'nested-worker/worker.js';\n\nconst nestedWorker = new Worker('another-worker.js', {\n  type: 'module' // or transpile modules\n});\n```\n\n```javascript\n// another-worker.js\nimport 'nested-worker/worker.js';\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohanholmerin%2Fnested-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohanholmerin%2Fnested-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohanholmerin%2Fnested-worker/lists"}