A tool (v0.0.27) that parses source files to extract custom Tailwind CSS class names used in HTML/JSX templates and consolidates them into a single JSON file. It relies on AST-based parsing to identify dynamic or custom class combinations that Tailwind's default purge might miss. The project is in early development with no release cadence; its key differentiator is focused extraction of custom classes for Tailwind's safelist, intended for build pipeline integration via npm scripts. Currently limited to default 'src' folder and outputs 'extracted-classes.json'.
npm install tailwind-transpilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install as dev dependency and run the CLI to extract custom Tailwind classes from source code into extracted-classes.json.
Use npx tailwind-transpiler or specify full path in npm scripts.
Use child_process.exec to invoke CLI programmatically.
Back up existing file before running extraction.
Use npx extract-classes or add to npm scripts as shown.
Run extract-classes <path-to-existing-folder>
Ensure npm install tailwind-transpiler --save-dev ran and use CLI only, not require().
No dependency data recorded yet.