
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
mvc-model-generator
Advanced tools
A Node.js script to generate directory structures for MVC-based applications.
✅ Automatically creates directories for an MVC application
✅ Supports configurable file structures
✅ Simple and easy to use
npm install -g mvc-model-generator
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
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"
];
git clone https://github.com/MB-PieSec/MVC-Model-Generator.git
cd MVC-Model-Generator
npm install
This project is licensed under the ISC License. See the LICENSE file for details.
Feel free to submit issues or pull requests on GitHub:
🔗 GitHub Repository
FAQs
A node script to generate directories for mvc-model apps.
The npm package mvc-model-generator receives a total of 0 weekly downloads. As such, mvc-model-generator popularity was classified as not popular.
We found that mvc-model-generator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.