{"id":15289054,"url":"https://github.com/technikhil314/tailwind-apply-cli","last_synced_at":"2026-05-09T10:41:44.224Z","repository":{"id":51881454,"uuid":"365697074","full_name":"technikhil314/tailwind-apply-cli","owner":"technikhil314","description":"A nodejs cli that generates a tailwind.css with apply directive for most reused class strings","archived":false,"fork":false,"pushed_at":"2021-06-27T11:01:05.000Z","size":503,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T08:42:30.939Z","etag":null,"topics":["cli","css","nodejs-cli","reused-classstrings","tailwind","tailwind-css","tailwindcss","web","webapp"],"latest_commit_sha":null,"homepage":"","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/technikhil314.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-09T07:49:28.000Z","updated_at":"2021-06-27T11:01:00.000Z","dependencies_parsed_at":"2022-08-23T06:00:57.136Z","dependency_job_id":null,"html_url":"https://github.com/technikhil314/tailwind-apply-cli","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technikhil314%2Ftailwind-apply-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technikhil314%2Ftailwind-apply-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technikhil314%2Ftailwind-apply-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technikhil314%2Ftailwind-apply-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technikhil314","download_url":"https://codeload.github.com/technikhil314/tailwind-apply-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245217791,"owners_count":20579297,"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":["cli","css","nodejs-cli","reused-classstrings","tailwind","tailwind-css","tailwindcss","web","webapp"],"created_at":"2024-09-30T15:58:40.241Z","updated_at":"2026-05-09T10:41:39.166Z","avatar_url":"https://github.com/technikhil314.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tailwind-apply-cli\n\nA nodejs cli that generates a tailwind.css classes with `@apply` for most reused classStrings and replaces them in your html or templates\n\n## Installation\n\n```bash\nnpm i tailwind-apply-cli\n```\n\n## Usage\n\n```bash\nnpx twapply \u003cglob_pattern\u003e\n```\n\n## Example\n\nThis will generate className and tailwind.css for all class strings defined in the _.js and _.html files in current directory and its child directories\n\n```bash\nnpx twapply \"./**/*.(jsx|html)\"\n```\n\n### Sample input/output\n\n#### Before\n\n[![Before](https://github.com/technikhil314/my-static-assets/raw/master/images/tw-apply-before.png)](https://github.com/technikhil314/my-static-assets/raw/master/images/tw-apply-before.png)\n\n#### After\n\n[![after](https://github.com/technikhil314/my-static-assets/raw/master/images/tw-apply-after.png)](https://github.com/technikhil314/my-static-assets/raw/master/images/tw-apply-after.png)\n\n## Demo\n\n[![demo](https://raw.githubusercontent.com/technikhil314/my-static-assets/master/terminal-casts/tailwind-apply-cli.svg)](https://raw.githubusercontent.com/technikhil314/my-static-assets/master/terminal-casts/tailwind-apply-cli.svg)\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnikhil314%2Ftailwind-apply-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnikhil314%2Ftailwind-apply-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnikhil314%2Ftailwind-apply-cli/lists"}