{"id":14384901,"url":"https://github.com/aaronshaf/shaf-toggle","last_synced_at":"2025-09-05T00:48:48.556Z","repository":{"id":57357763,"uuid":"74062259","full_name":"aaronshaf/shaf-toggle","owner":"aaronshaf","description":"Elegant, accessible toggle element. Upgrades existing \u003cinput type=\"checkbox\" /\u003e","archived":false,"fork":false,"pushed_at":"2017-03-25T23:37:46.000Z","size":75,"stargazers_count":28,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-05T00:48:42.844Z","etag":null,"topics":["custom-elements","toggle"],"latest_commit_sha":null,"homepage":"https://aaronshaf.github.io/shaf-toggle/","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/aaronshaf.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-11-17T19:56:56.000Z","updated_at":"2021-04-03T15:33:52.000Z","dependencies_parsed_at":"2022-09-19T02:51:15.591Z","dependency_job_id":null,"html_url":"https://github.com/aaronshaf/shaf-toggle","commit_stats":null,"previous_names":["aaronshaf/toggle-element"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aaronshaf/shaf-toggle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronshaf%2Fshaf-toggle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronshaf%2Fshaf-toggle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronshaf%2Fshaf-toggle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronshaf%2Fshaf-toggle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaronshaf","download_url":"https://codeload.github.com/aaronshaf/shaf-toggle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronshaf%2Fshaf-toggle/sbom","scorecard":{"id":159463,"data":{"date":"2025-08-11","repo":{"name":"github.com/aaronshaf/shaf-toggle","commit":"866833d3de802b6dd1dbbdd0ec1b886f77b5de0a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-16T12:55:21.752Z","repository_id":57357763,"created_at":"2025-08-16T12:55:21.752Z","updated_at":"2025-08-16T12:55:21.752Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273695201,"owners_count":25151481,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"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":["custom-elements","toggle"],"created_at":"2024-08-28T18:01:45.961Z","updated_at":"2025-09-05T00:48:43.534Z","avatar_url":"https://github.com/aaronshaf.png","language":"JavaScript","readme":"## It's easy peasy\n\n\u003cimg src=\"https://camo.githubusercontent.com/7b82df5ece8794631d7b004a6fd1d9fe32a336b6/68747470733a2f2f64337676366c703535716a6171632e636c6f756466726f6e742e6e65742f6974656d732f334132783052335a3245337130523069304531692f53637265656e2532305265636f7264696e67253230323031362d31312d3234253230617425323031312e3433253230414d2e6769663f582d436c6f75644170702d56697369746f722d49643d643661386464343439306336316166646261386130613230383232373361613126763d3631613139333333\" height=\"32px\" /\u003e\n\nCheck out the [demo](https://aaronshaf.github.io/shaf-toggle/). Works in IE11, Edge, Chrome, Firefox, and Safari.\n\n```html\n\u003c!-- Custom Elements v1 polyfill (2.7KB gzipped) --\u003e\n\u003cscript src=\"https://unpkg.com/@webcomponents/custom-elements@1.0.0-alpha.3\"\u003e\u003c/script\u003e\n```\n\n```html\n\u003c!-- our custom element's source (6.5KB gzipped) --\u003e\n\u003cscript src=\"https://unpkg.com/shaf-toggle@1.0.9\"\u003e\u003c/script\u003e\n```\n\n### Usage\n\n```html\n\u003cshaf-toggle\u003e\n  \u003cinput type=\"checkbox\" name=\"smooooth\" value=\"yes\" checked /\u003e\n\u003c/shaf-toggle\u003e\n```\n\n\n### Benefits\n\nBecause this wraps an existing `\u003cinput type=\"checkbox\" /\u003e`:\n\n* It is form-friendly.\n* It doesn't mess with your event handlers.\n* Your checkbox still works if JavaScript is turned off or fails to load.\n\n## Contributors\n\n* [aaronshaf](https://github.com/aaronshaf)\n* [ahstro](https://github.com/ahstro)\n* This project inherits work from [react-toggle](https://github.com/aaronshaf/react-toggle).\n\n## See also\n\n* [shaf-button](https://github.com/aaronshaf/shaf-button)\n* [shaf-chart](https://github.com/aaronshaf/shaf-chart)\n* [shaf-star-rating](https://github.com/aaronshaf/shaf-star-rating)\n* [shaf-unified-diff](https://github.com/aaronshaf/shaf-unified-diff)\n* [shaf-timeago](https://github.com/aaronshaf/shaf-timeago)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronshaf%2Fshaf-toggle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaronshaf%2Fshaf-toggle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronshaf%2Fshaf-toggle/lists"}