New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dev-mvc

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dev-mvc - npm Package Compare versions

Comparing version 1.3.3 to 1.4.0

46

index.js

@@ -5,4 +5,2 @@ #!/usr/bin/env node

const path = require('path');
const readline = require('readline');
const { exec } = require('child_process');

@@ -65,45 +63,9 @@ const colors = {

function checkNodeModulesAndPrompt(callback) {
const baseDir = process.cwd();
const nodeModulesPath = path.join(baseDir, 'node_modules');
if (!fs.existsSync(nodeModulesPath)) {
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.question(`${colors.yellow}node_modules folder is missing. Do you want to create it by running "npm install"? (y/n): ${colors.reset}`, answer => {
if (answer.toLowerCase() === 'y') {
console.log(`${colors.blue}Installing node modules...${colors.reset}`);
exec('npm install', (err, stdout, stderr) => {
if (err) {
console.error(`${colors.red}Error installing modules: ${err}${colors.reset}`);
} else {
console.log(stdout);
console.log(`${colors.green}node_modules installed.${colors.reset}`);
}
rl.close();
callback();
});
} else {
console.log(`${colors.blue}Skipping node_modules installation.${colors.reset}`);
rl.close();
callback();
}
});
} else {
callback();
}
}
if (require.main === module) {
checkNodeModulesAndPrompt(() => {
displayBranding();
setTimeout(() => {
createBackendFoldersAndFiles();
}, 2000);
});
displayBranding();
setTimeout(() => {
createBackendFoldersAndFiles();
}, 2000);
}
module.exports = createBackendFoldersAndFiles;

2

package.json
{
"name": "dev-mvc",
"version": "1.3.3",
"version": "1.4.0",
"description": "Automate the creation of a Node.js MVC folder structure for backend applications. Boost productivity with dev-mvc CLI.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc