{"id":28471698,"url":"https://github.com/bitcrowd/rehype-sort-tailwind-classes","last_synced_at":"2026-04-24T23:34:32.329Z","repository":{"id":42618585,"uuid":"410488575","full_name":"bitcrowd/rehype-sort-tailwind-classes","owner":"bitcrowd","description":"Sort Tailwind CSS classes in HTML","archived":false,"fork":false,"pushed_at":"2023-03-06T11:37:42.000Z","size":56,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-10-22T15:11:53.089Z","etag":null,"topics":["rehype","rehype-plugin","tailwindcss"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/rehype-sort-tailwind-classes","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/bitcrowd.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":"2021-09-26T08:00:17.000Z","updated_at":"2021-09-26T18:49:25.000Z","dependencies_parsed_at":"2022-09-10T22:22:11.836Z","dependency_job_id":null,"html_url":"https://github.com/bitcrowd/rehype-sort-tailwind-classes","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bitcrowd/rehype-sort-tailwind-classes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcrowd%2Frehype-sort-tailwind-classes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcrowd%2Frehype-sort-tailwind-classes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcrowd%2Frehype-sort-tailwind-classes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcrowd%2Frehype-sort-tailwind-classes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitcrowd","download_url":"https://codeload.github.com/bitcrowd/rehype-sort-tailwind-classes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcrowd%2Frehype-sort-tailwind-classes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32245150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"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":["rehype","rehype-plugin","tailwindcss"],"created_at":"2025-06-07T11:08:34.378Z","updated_at":"2026-04-24T23:34:32.314Z","avatar_url":"https://github.com/bitcrowd.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rehype-sort-tailwind-classes\n\nSort Tailwind CSS classes in HTML.\n\n[![main](https://github.com/bitcrowd/rehype-sort-tailwind-classes/actions/workflows/main.yml/badge.svg)](https://github.com/bitcrowd/rehype-sort-tailwind-classes/actions/workflows/main.yml)\n\n## Install\n\nThis package is [ESM-only][esm]: Node 12+ is needed to use it and it must be `imported`ed instead of `required`d.\n\n[npm][]:\n\n```sh\nnpm install rehype-sort-tailwind-classes\n```\n\nThis package exports no identifiers. The default export is `rehypeSortTailwindClasses`.\n\n## Use\n\nOn the API:\n\n```diff\n import { unified } from 'unified';\n import rehypeParse from 'rehype-parse';\n+import rehypeSortTailwindClasses from 'rehype-sort-tailwind-classes';\n import rehypeStringify from 'rehype-stringify';\n\n unified()\n   .use(rehypeParse)\n+  .use(rehypeSortTailwindClasses)\n   .use(rehypeStringify)\n   .process('\u003cspan\u003esome html\u003c/span\u003e', function (err, file) {\n     console.error(report(err || file));\n     console.log(String(file));\n   });\n```\n\nOn the CLI:\n\n```sh\nrehype input.html --use rehype-sort-tailwind-classes --output output.html\n```\n\n## Example\n\n##### In\n\n```html\n\u003cdiv class=\"z-50 z-10 container text-left md:text-center justify-center\"\u003e\u003c/div\u003e\n```\n\n##### Out\n\n```html\n\u003cdiv class=\"container z-10 z-50 justify-center text-left md:text-center\"\u003e\u003c/div\u003e\n```\n\n## Options\n\nThe plugin accepts any options supported by [Tailwind Classes Sorter][tcs].\n\nAdditionally, it supports a `pluginOrder: string[]` option to augment the default plugin ordering.\n\n## License\n\n[MIT](./LICENSE)\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n[npm]: https://docs.npmjs.com/cli/install\n[tcs]: https://github.com/Acidic9/tailwind-classes-sorter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcrowd%2Frehype-sort-tailwind-classes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitcrowd%2Frehype-sort-tailwind-classes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcrowd%2Frehype-sort-tailwind-classes/lists"}