{"id":18524621,"url":"https://github.com/bengreenier-archive/chrome-zones","last_synced_at":"2026-04-10T23:50:27.117Z","repository":{"id":57198495,"uuid":"62465861","full_name":"bengreenier-archive/chrome-zones","owner":"bengreenier-archive","description":"wraps chrome extension apis so that if they are executing in a zone, their callbacks do too","archived":false,"fork":false,"pushed_at":"2017-02-16T01:13:36.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-12T09:12:05.906Z","etag":null,"topics":["angular","chrome-extension"],"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/bengreenier-archive.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":"2016-07-02T19:02:02.000Z","updated_at":"2019-09-29T11:57:00.000Z","dependencies_parsed_at":"2022-09-16T14:10:24.735Z","dependency_job_id":null,"html_url":"https://github.com/bengreenier-archive/chrome-zones","commit_stats":null,"previous_names":["bengreenier/chrome-zones"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bengreenier-archive%2Fchrome-zones","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bengreenier-archive%2Fchrome-zones/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bengreenier-archive%2Fchrome-zones/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bengreenier-archive%2Fchrome-zones/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bengreenier-archive","download_url":"https://codeload.github.com/bengreenier-archive/chrome-zones/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239242067,"owners_count":19605946,"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":["angular","chrome-extension"],"created_at":"2024-11-06T17:42:50.634Z","updated_at":"2025-10-31T23:30:25.044Z","avatar_url":"https://github.com/bengreenier-archive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chrome-zones\n\n[![Build Status](https://travis-ci.org/bengreenier/chrome-zones.svg?branch=master)](https://travis-ci.org/bengreenier/chrome-zones)\n\nwraps chrome extension apis so that if they are executing in a zone, their callbacks do too\n\n# Why?\n\nIf, for instance, you wish to use angular2 in a chrome extension, and want to change\nrenderable/injectable/etc values from within a chrome extension api callback.\n\n# How?\n\n## Do i use it?\n\n\u003e `npm install chrome-zones` is the easiest.\n\nIf npm is too heavy for you, grab a built version [from this repo](./dist). Note\nthat you'll also need [angular/zone.js](https://github.com/angular/zone.js) included\nin your page.\n\n### Example\n\n\u003e An example of an angular2 powered chrome extension can be found @ [bengreenier/angular2-chrome-zones-quickstart](https://github.com/bengreenier/angular2-chrome-zones-quickstart)\n\nSee [example](./example) for a complete working example.\n\n## Angular CLI\n\nJust add it to the scripts array in your `angular-cli.json`\n\n```!JSON\n\"scripts\": [\n    \"../node_modules/chrome-zones/dist/chrome-zones.min.js\"\n]\n```\n\n## Does it work?\n\nUsing monkeypatching and `zone.wrap`. Basically when the script loads\nit patches the entire `chrome.\u003cwhatever\u003e` api space such that all\nfunctions that are called have their last argument (if it is a function)\npatched with `zone.wrap`.\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbengreenier-archive%2Fchrome-zones","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbengreenier-archive%2Fchrome-zones","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbengreenier-archive%2Fchrome-zones/lists"}