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

needjs-cli

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

needjs-cli

needjs library serve to build various structure and implement famous concept

latest
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

📦 NeedJS CLI - Command Documentation

✅ Installation

To install the needjs-cli globally, run:

npm i -g needjs-cli

🏗️ Project Structure Generation

Create a new project with a specific architecture and style.

MVC Structure

needjs-cli struct mvc

Creates MVC structure with default SSR style.

needjs-cli struct mvc --style ssr

MVC with Server-Side Rendering.

needjs-cli struct mvc --style rest

MVC with REST API style.

needjs-cli struct mvc --style graphql

MVC with GraphQL style.

MVP Structure

needjs-cli struct mvp

Creates MVP structure with default SSR style.

needjs-cli struct mvp --style ssr

MVP with Server-Side Rendering.

needjs-cli struct mvp --style rest

MVP with REST API style.

needjs-cli struct mvp --style graphql

MVP with GraphQL style.

🔐 Security Configuration

Configure security middleware at the entry point of your application.

needjs-cli security

Applies security settings to the default entry point (index.js).

needjs-cli security app.js

Applies security settings to a custom entry point (app.js).

🗄️ Database Setup

Set up Sequelize ORM or MongoDB with your chosen database engine.

Using Sequelize

needjs-cli db sequelize mysql

Setup with MySQL.

needjs-cli db sequelize postgres

Setup with PostgreSQL.

needjs-cli db sequelize mariadb

Setup with MariaDB.

needjs-cli db sequelize sqlite

Setup with SQLite.

needjs-cli db sequelize mssql

Setup with Microsoft SQL Server.

needjs-cli db sequelize oracle

Setup with Oracle DB.

Using MongoDB

needjs-cli db mongodb

Setup with MongoDB (without an ORM).

🔐 Setup Auth (JWT).

needjs-cli auth jwt

Setup auth routes and controller.

Setup Middleware.

needjs-cli middleware auth jwt
needjs-cli middleware auth basic
needjs-cli middleware role dbColumn:expectedValue

Setup middleware isAuth to check users authentication. Setup middleware roles authorization.

👤 Author

Created by Hamza Ichaoui
📧 Email: me677499@gmail.com
🔗 LinkedIn: https://www.linkedin.com/in/hamza-ichaoui/

FAQs

Package last updated on 06 Jul 2025

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