ctcomp
v1.0.4
Published
A util to make react tsx components with scss modules quickly
Downloads
4
Maintainers
Readme
🎨 ctcomp
ctcomp
is a command-line utility for creating React components with TypeScript and SCSS modules quickly.
🎉 Getting Started
To use ctcomp
, first install it globally:
npm install -g ctcomp
Then, you can use the ctcomp
command to create a new component:
ctcomp MyComponent
This will create a new directory called MyComponent
in the current working directory, with a MyComponent.tsx
file and a MyComponent.module.scss
file.
🤖 API
ctcomp(componentName: string): string
Creates a new React component with the specified name. Returns the name of the created component.
🙌 Contributing
Contributions are welcome! If you have any feature requests or bug reports, please open an issue on the GitHub repository.
📝 License
ctcomp
is licensed under the MIT License. Feel free to use it in your projects! 🎉