clegen
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

Clegen 🧩

Generate modules with clean code for Typescript projects

What is Clegen?

Clegen (clean generator) is a command-line tool designed to scaffold clean code modules in TypeScript projects.

Installation

Since clegen is not a package, you can use it directly with npx:

npx clegen@latest

Usage

To use clegen, simply run the following command and follow the prompts to generate the scaffolding for a new module:

npx clegen@latest

The tool will guide you through the process of creating a new module, such as "User", and generate the necessary directory structure including domain, application, and infrastructure layers.

Example

Here's an example of how you can use clegen to create a new "Product" module:

CLI flow

And the result:

Result

Contributing

Contributions to clegen are welcome! If you encounter any issues or have suggestions for improvements, please feel free to submit pull requests or open issues on the GitHub repository.

License

This project is licensed under the MIT License.

Package Sidebar

Install

npm i clegen

Weekly Downloads

14

Version

4.0.0

License

MIT

Unpacked Size

13.2 kB

Total Files

20

Last publish

Collaborators

  • mvrcoag