{"id":21654640,"url":"https://github.com/localvoid/clsmin","last_synced_at":"2026-05-19T11:03:25.566Z","repository":{"id":143797909,"uuid":"97111561","full_name":"localvoid/clsmin","owner":"localvoid","description":"CSS Class Name Minifier","archived":false,"fork":false,"pushed_at":"2017-08-08T05:10:30.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-29T19:42:21.447Z","etag":null,"topics":["css","minifier"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/localvoid.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":"2017-07-13T10:40:55.000Z","updated_at":"2017-07-18T00:00:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"23edad99-2f52-455f-89df-be40fe7e3e83","html_url":"https://github.com/localvoid/clsmin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fclsmin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fclsmin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fclsmin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fclsmin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/localvoid","download_url":"https://codeload.github.com/localvoid/clsmin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244554121,"owners_count":20471173,"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":["css","minifier"],"created_at":"2024-11-25T08:28:35.350Z","updated_at":"2026-05-19T11:03:25.510Z","avatar_url":"https://github.com/localvoid.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSS Class Name Minifier\n\n## Usage Example\n\n```ts\nimport { clsmin, easyListFilter } from \"clsmin\";\n\nconst minifier = clsmin(\n  (className) =\u003e (\n    !className.toLowerCase().startsWith(\"ad\") \u0026\u0026\n    easyListFilter(className)\n  );\n);\n\nminifier(\"header\");\n// =\u003e a\nminifier(\"footer\");\n// =\u003e b\nminifier(\"header\");\n// =\u003e a\n```\n\n## API\n\n### Class Name Minifier\n\n```ts\nclsmin(filter: (className: string) =\u003e boolean = () =\u003e true): (className: string) =\u003e string;\n```\n\n### EasyList\n\nClass names blocked by adblocking software.\n\n```ts\nconst EasyListClassNames: Set\u003cstring\u003e;\nfunction easyListFilter(className: string): boolean;\n```\n\n## ChangeLog\n\n### 1.0.0\n\n- Filter interface is now compatible with `Array.prototype.filter()` method.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalvoid%2Fclsmin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocalvoid%2Fclsmin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalvoid%2Fclsmin/lists"}