1.0.6 • Published 4 months ago

write-module v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

write-module

If you use the modular pattern for an express application, each module in the modules directory needs to have at least five files (controller, route, service, interface, model). This package is a CLI tool to create those files easily.

Install globally

$ npm install -g write-module 

Usage

$ write-module hello-world

This command will create a hello-world directory with the following files in the src/modules directory.

├── user.interface.ts
├── user.route.ts
├── user.controller.ts
├── user.model.ts
└── user.service.ts

You can change the output directory path by using the following command

$ write-module hello-world src/app/modules

Now the directory with the file will be created in src/app/modules

1.0.6

4 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago