{"id":18901213,"url":"https://github.com/regular/subdom","last_synced_at":"2025-06-22T13:08:58.724Z","repository":{"id":7843056,"uuid":"9214706","full_name":"regular/subdom","owner":"regular","description":"subdom component. wraps component/dom to isolate a sub dom, sort of chroot. Useful for widgets.","archived":false,"fork":false,"pushed_at":"2013-05-22T10:21:13.000Z","size":108,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-24T11:08:28.385Z","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":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/regular.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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":"2013-04-04T09:14:53.000Z","updated_at":"2013-10-16T02:04:37.000Z","dependencies_parsed_at":"2022-08-31T15:52:45.796Z","dependency_job_id":null,"html_url":"https://github.com/regular/subdom","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/regular/subdom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fsubdom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fsubdom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fsubdom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fsubdom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regular","download_url":"https://codeload.github.com/regular/subdom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fsubdom/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261297010,"owners_count":23137222,"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":[],"created_at":"2024-11-08T08:55:29.039Z","updated_at":"2025-06-22T13:08:53.710Z","avatar_url":"https://github.com/regular.png","language":"JavaScript","readme":"\n# subdom\n\n  wraps component/dom to isolate a sub branch of the dom, sort of chroot. Useful for widgets\n\n## Installation\n\n    $ component install regular/subdom\n\n## API\n\nThis HTML contains two sub doms named `foo` and `bar`\n\n    \u003chtml\u003e\n      \u003cdiv class=\"subdom\" name=\"foo\"\u003e\n        \u003ch1\u003etitle goes here\u003c/h1\u003e\n      \u003c/div\u003e\n      \u003cdiv class=\"subdom\" name=\"bar\"\u003e\n        \u003ch1\u003etitle goes here\u003c/h1\u003e\n      \u003c/div\u003e\n    \u003c/html\u003e\n\nA widget-like component can now create an instance of\ncomponent/dom that will only access elements of the named subdom.\n\n    mySubDom = require(\"subdom\")(\"foo\");\n\n    mySubDom(function(dom) {\n      dom(\"h1\").html(\"Foo title\"); // only changes h1 in scope 'foo'\n    });\n   \n## License\n\n  MIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregular%2Fsubdom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregular%2Fsubdom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregular%2Fsubdom/lists"}