
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
nestjs-module-generator
Advanced tools
A CLI tool to generate NestJS modules with folder structure and boilerplate files.
A command-line tool for generating NestJS modules with the necessary folder structure and boilerplate files. It automates the creation of common files like controllers, services, DTOs, entities, and interfaces, making it easy to quickly scaffold new modules in your NestJS application.
To install the package globally and use the CLI tool, run the following command:
npm install -g nestjs-module-generator
If you want to use it locally within your project:
npm install nestjs-module-generator --save-dev
Once the package is installed, you can use the generate-module command to create a new NestJS module with all the necessary boilerplate files.
generate-module <module-name>
Where <module-name> is the name of the module you want to create (e.g., products, users, etc.).
To create a module for products:
generate-module products
This will generate the following folder structure:
products/
├── products.controller.ts
├── products.service.ts
├── products.module.ts
├── dto/
│ ├── create-products.dto.ts
│ └── update-products.dto.ts
├── entities/
│ └── products.entity.ts
└── interfaces/
└── products.interface.ts
Each file is pre-configured with the necessary boilerplate for a typical NestJS module, ready for you to start implementing business logic.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to open issues and submit pull requests for enhancements or bug fixes. All contributions are welcome!
For support, please open an issue in the GitHub repository or contact the author directly.
FAQs
A CLI tool to generate NestJS modules with folder structure and boilerplate files.
We found that nestjs-module-generator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.