New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

express-gen-cli

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-gen-cli

A CLI to generate Express controllers and models for MongoDB and SQL

latest
npmnpm
Version
1.0.4
Version published
Maintainers
0
Created
Source

express-gen-cli

A CLI tool to generate Express controllers and models for MongoDB and SQL databases.

Features

  • Generate Express controllers with standard CRUD functions.
  • Create Sequelize models for SQL databases.
  • Generate Mongoose models for MongoDB.

Installation

To install the package globally, use the following command:

npm install -g express-gen-cli


Usage
This CLI provides several commands for generating controllers and models. Below are the commands you can use:

Generate a Controller
To create a new controller, run the following command:
express-gen make:controller <controller-name>

Generate a Sequelize Model
To create a new Sequelize model, use:
express-gen make:model:sql <model-name>

Generate a Mongoose Model
To create a new Mongoose model, use:
express-gen make:model:mongo <model-name>


Example Commands
Here are examples of how to use the commands:

To generate a controller named UserController, run:
express-gen make:controller UserController

To generate a Sequelize model named User, run:
express-gen make:model:sql User

To generate a Mongoose model named User, run:
express-gen make:model:mongo User

Keywords
Express.js CLI
Generate Express Controllers
MongoDB Mongoose Models
SQL Sequelize Models
CRUD Express CLI
Express Generator CLI Tool
Express Models and Controllers
Node.js Express CLI Tool

Keywords

express

FAQs

Package last updated on 31 Oct 2024

Did you know?

Socket

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.

Install

Related posts