{"id":13447037,"url":"https://github.com/github/check-all","last_synced_at":"2025-04-04T08:10:01.137Z","repository":{"id":37549851,"uuid":"146782428","full_name":"github/check-all","owner":"github","description":"Multiple checkbox selection helper.","archived":false,"fork":false,"pushed_at":"2025-03-11T19:12:37.000Z","size":930,"stargazers_count":80,"open_issues_count":2,"forks_count":17,"subscribers_count":297,"default_branch":"main","last_synced_at":"2025-03-28T07:09:01.322Z","etag":null,"topics":["decorator"],"latest_commit_sha":null,"homepage":"http://github.github.io/check-all/examples","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/github.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-30T17:20:31.000Z","updated_at":"2025-03-11T19:12:40.000Z","dependencies_parsed_at":"2024-01-11T06:45:03.854Z","dependency_job_id":"da914c8e-a036-4e00-88ae-d0f242c01876","html_url":"https://github.com/github/check-all","commit_stats":{"total_commits":75,"total_committers":6,"mean_commits":12.5,"dds":0.5333333333333333,"last_synced_commit":"80c7b3e466e91cbacc3063c1a439863b70634969"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fcheck-all","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fcheck-all/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fcheck-all/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fcheck-all/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/check-all/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142074,"owners_count":20890653,"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":["decorator"],"created_at":"2024-07-31T05:01:06.560Z","updated_at":"2025-04-04T08:10:01.104Z","avatar_url":"https://github.com/github.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Check All\n\n- Check/uncheck `[data-check-all]` to check/uncheck all checkboxes in a container.\n- Shift click on `[data-check-all-item]` to select all checkboxes between the last checked checkbox and the target checkbox.\n- Auto-update `[data-check-all-count]` to count of checked items.\n\n## Installation\n\n```\n$ npm install @github/check-all\n```\n\n## Usage\n\n### JS\n\n```js\nimport checkAll from '@github/check-all'\ncheckAll(document.querySelector('[data-check-all-container]'))\n```\n\nUsing a library like [selector-observer](https://github.com/josh/selector-observer), the behavior can automatically be applied to any container matching a selector.\n\n```js\nimport {observe} from 'selector-observer'\nimport checkAll from '@github/check-all'\n\nobserve('[data-check-all-container]', { subscribe: checkAll })\n```\n\n### HTML\n\n```html\n\u003cdiv data-check-all-container\u003e\n  Count: \u003cspan data-check-all-count\u003e0\u003c/span\u003e\n  \u003clabel\u003e\u003cinput type=\"checkbox\" data-check-all\u003e Check All\u003c/label\u003e\n  \u003clabel\u003e\u003cinput type=\"checkbox\" data-check-all-item\u003e github/fetch\u003c/label\u003e\n  \u003clabel\u003e\u003cinput type=\"checkbox\" data-check-all-item\u003e github/textarea-autosize\u003c/label\u003e\n  \u003clabel\u003e\u003cinput type=\"checkbox\" data-check-all-item\u003e github/eventlistener-polyfill\u003c/label\u003e\n  \u003clabel\u003e\u003cinput type=\"checkbox\" data-check-all-item\u003e github/quote-selection\u003c/label\u003e\n\u003c/div\u003e\n```\n\n## Development\n\n```\nnpm install\nnpm test\n```\n\n## License\n\nDistributed under the MIT license. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fcheck-all","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Fcheck-all","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fcheck-all/lists"}