
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
exp-cli-gen
Advanced tools
[](https://www.npmjs.com/package/exp-cli-gen) [](https://www.npmjs.com/package/exp-cli-gen) [:
npx exp-cli-gen <module-name>
🏗️ Generate your first module
Run:
npx exp-cli-gen test
First run example:
Need to install the following packages:
exp-cli-gen@1.0.1
Ok to proceed? (y)
⠋ No Express project found. Cloning starter pack...
✔ Starter project cloned!
✔ Git logs removed!
📦 Installing dependencies...
🚀 Project setup complete.
🧩 Generating module: test...
✔ test.interface.ts created
✔ test.schema.ts created
✔ test.validation.ts created
✔ test.route.ts created
✔ test.controller.ts created
✔ test.service.ts created
✔ test.swagger.ts created
🔗 Route added to src/app/routes.ts
📘 Swagger doc added to src/swaggerOptions.ts
✨ Module 'test' created successfully!
Each generated module will contain the following files:
src/app/modules/<module-name>/
├── <module-name>.interface.ts
├── <module-name>.schema.ts
├── <module-name>.validation.ts
├── <module-name>.route.ts
├── <module-name>.controller.ts
├── <module-name>.service.ts
└── <module-name>.swagger.ts
Need another module? Just run:
npx exp-cli-gen products
If the starter project already exists, it will skip cloning and directly add the new module.
Example output:
ℹ 📦 Starter folder already exists. Skipping clone.
📦 Dependencies already installed. Skipping npm install.
🧩 Generating module: products...
✔ products files created
✨ Module 'products' created successfully!
src/app/modules/products/
├── products.interface.ts
├── products.schema.ts
├── products.validation.ts
├── products.route.ts
├── products.controller.ts
├── products.service.ts
└── products.swagger.ts
Then, refresh your Swagger docs at:
http://localhost:5000/docs
You’ll see your new routes automatically added.
After setup, update your .env file following the .env.example file in the starter project.
To start the server:
npm run dev
Open Swagger documentation at:
http://localhost:5000/docs
This CLI uses the following base project as a starter:
Abu Mahid
If you like this CLI, please give it a ⭐ on GitHub — it helps others discover it too! Thank you!
FAQs
[](https://www.npmjs.com/package/exp-cli-gen) [](https://www.npmjs.com/package/exp-cli-gen) [
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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.