{"id":21657014,"url":"https://github.com/cotag/scope-buster","last_synced_at":"2026-06-22T19:31:26.056Z","repository":{"id":18970793,"uuid":"22191694","full_name":"cotag/scope-buster","owner":"cotag","description":"AngularJS tool for sharing variables across different scopes","archived":false,"fork":false,"pushed_at":"2014-07-29T14:01:45.000Z","size":152,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-05-30T00:18:57.321Z","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":"wildfoundry/dataplicity-agent","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cotag.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}},"created_at":"2014-07-24T01:34:42.000Z","updated_at":"2014-07-24T01:37:07.000Z","dependencies_parsed_at":"2022-09-05T22:00:37.886Z","dependency_job_id":null,"html_url":"https://github.com/cotag/scope-buster","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/cotag/scope-buster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cotag%2Fscope-buster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cotag%2Fscope-buster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cotag%2Fscope-buster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cotag%2Fscope-buster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cotag","download_url":"https://codeload.github.com/cotag/scope-buster/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cotag%2Fscope-buster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34663524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"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":[],"created_at":"2024-11-25T09:18:50.529Z","updated_at":"2026-06-22T19:31:26.035Z","avatar_url":"https://github.com/cotag.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scope Buster\n\nScope buster is used to connect data from various scopes without leakage.\nFor instance, linking a search box in the header to a controller for the view whilst also maintaining a search parameter in the URL and providing either rate limiting or debouncing at the same time.\n\n1. Open your bower.json\n2. Add `\"scope-buster\": \"~1.0.0\"` to your dependency list\n3. Run `bower install`\n4. In your application you can now add:\n   * `\u003cscript src=\"components/scope-buster/scope-buster.js\"\u003e\u003c/script\u003e`\n   * Add `scopeBuster` to your module list in your app\n\n\n## AngularJS Usage\n\n```js\n\nscopeBuster.pub(otherScope, 'variable.name', {\n    // Optional options\n    mapping: 'name.of.scopeBuster.variable',  // defaults to variable.name provided\n    persist: false,     // Hold value after scope has been destroyed\n    routeParam: 'query', // name of the routeParam that should be kept in sync\n\n    // Both these default to false\n    // debounce: 200,   // ms without change before we apply the value after an update\n    // ratelimit: 200 // ms before we apply the latest value\n});\n\n\n\n// Then in another scope you can:\n\n\nscopeBuster.sub(scope, 'local', 'name.of.scopeBuster.variable');\n\n// Then you can watch for changes or bind to the variable\n// i.e.\n\nscope.$watch('local', function (newVar) {\n    // newVar === otherScope.variable.name\n});\n\n```\n\nIt is up to you to ensure variables are namespaced correctly in scopeBuster so that there are no clashes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcotag%2Fscope-buster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcotag%2Fscope-buster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcotag%2Fscope-buster/lists"}