You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mvc-model-generator

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

mvc-model-generator

A node script to generate directories for mvc-model apps.

1.0.3
latest
Source
npmnpm
Version published
Maintainers
0
Created
Source

MVC Model Generator

A Node.js script to generate directory structures for MVC-based applications.

📌 Features

✅ Automatically creates directories for an MVC application
✅ Supports configurable file structures
✅ Simple and easy to use

📥 Installation

Using npm (for general use)

npm install -g mvc-model-generator

🚀 Usage

After linking the package, you can import and use it in your Node.js script:

import { init } from "mvc-model-generator";

init();

This will generate the following directory structure in the current working directory:

📂 project-root
 ├── 📂 config
 ├── 📂 public
 │   ├── 📂 css
 │   ├── 📂 js
 │   ├── 📂 images
 ├── 📂 src
 │   ├── 📂 models
 │   ├── 📂 views
 │   ├── 📂 controllers
 │   ├── 📂 routes
 │   ├── 📂 middleware
 ├── 📂 test

⚙️ Configuration (Optional)

If you want to customize the directory structure, modify the fileTree array inside index.js:

const fileTree = [
    "config",
    {"public": ["css", "js", "images"]},
    {"src": ["models", "views", "controllers", "routes", "middleware"]},
    "test"
];

🛠️ Development

Cloning the Repo

git clone https://github.com/MB-PieSec/MVC-Model-Generator.git
cd MVC-Model-Generator
npm install

📜 License

This project is licensed under the ISC License. See the LICENSE file for details.

📮 Contributing

Feel free to submit issues or pull requests on GitHub:
🔗 GitHub Repository

Keywords

mvc

FAQs

Package last updated on 12 Feb 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