format-styled
v0.0.2
Published
TypeScript-based CLI tool that formats CSS within styled-components template literals using Prettier
Maintainers
Readme
format-styled
CLI tool to format styled-components style text
Overview
Detects styled-components usage in TypeScript projects and formats CSS style text within template literals.
Features
- Auto-detection of styled-components usage via TypeScript AST
- CSS style text formatting using prettier
- npx execution support
Usage
# Basic usage
npx format-styled [options] <files...>
# Process directory
npx format-styled src/
# Process specific file
npx format-styled src/components/Button.tsOptions
--dry-run: Preview changes only--verbose: Detailed logging
