{"id":21252874,"url":"https://github.com/kevinhellos/twscope","last_synced_at":"2026-04-25T18:31:41.753Z","repository":{"id":235938232,"uuid":"791578944","full_name":"kevinhellos/twscope","owner":"kevinhellos","description":"Library to prevent class bloating for Tailwind CSS","archived":false,"fork":false,"pushed_at":"2024-04-25T01:19:14.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T21:51:25.468Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevinhellos.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-25T01:13:47.000Z","updated_at":"2024-04-25T01:19:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"e15b7d3b-6dbb-4325-82fa-118fe5d9aa0e","html_url":"https://github.com/kevinhellos/twscope","commit_stats":null,"previous_names":["iskevinlemon/twscope","kevinhellos/twscope"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kevinhellos/twscope","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinhellos%2Ftwscope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinhellos%2Ftwscope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinhellos%2Ftwscope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinhellos%2Ftwscope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinhellos","download_url":"https://codeload.github.com/kevinhellos/twscope/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinhellos%2Ftwscope/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32273213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-21T03:49:12.967Z","updated_at":"2026-04-25T18:31:41.715Z","avatar_url":"https://github.com/kevinhellos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twscope\nLibrary to prevent class bloating for Tailwind CSS\n\n## Setup\n1. Add the \u003ccode\u003etwscope.js\u003c/code\u003e to the root directory of your project\n2. Add the \u003ccode\u003escript.js\u003c/code\u003e to the root directory of your project\n\n## [scope] tag\n```html\n\u003c!-- Use [scope] tag and assign a bind variable --\u003e\n\u003cbutton type=\"button\"\n  [scope]=\"submitButton\"\u003e\n  Submit\n\u003c/button\u003e\n\n\u003cscript\u003e\n// Import createScope\nimport createScope from \"./twscope.js\";\n\n// Create and init the scope\nvar scope = createScope();\n\n// Save classes name and assign it to the bind variable\nscope.save(\"submitButton\", \"mt-5 ml-5 text-white bg-blue-700 hover:bg-blue-600 focus:ring-4 focus:ring-blue-300 font-medium rounded-md text-sm px-5 py-2.5 me-2 mb-2 dark:bg-blue-600 dark:hover:bg-blue-700 focus:outline-none dark:focus:ring-blue-800\");\n\n// Compile the scope\nscope.compile();\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinhellos%2Ftwscope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinhellos%2Ftwscope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinhellos%2Ftwscope/lists"}