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

configure-express-app

Package Overview
Dependencies
Maintainers
0
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configure-express-app - npm Package Compare versions

Comparing version 4.0.2 to 5.0.0

test1.js

16

index.js

@@ -18,3 +18,5 @@ #!/usr/bin/env node

const fs = require('fs');
const prompt = require('prompt-sync')();
const readline = require('node:readline/promises');
const { stdin: input, stdout: output } = require('node:process');
const prompt = readline.createInterface({ input, output });

@@ -75,8 +77,8 @@ const mainDir = './app';

console.log('\n');
ProjectName = prompt('Project Name : ').trim().replace(/\s+/g, '');
mainFileName = prompt('Main File Name : ').split('.')[0].trim().replace(/\s+/g, '');
authorName = prompt('Author Name : ').trim();
description = prompt('Description : ').trim();
ProjectName = prompt.question('Project Name : ').trim().replace(/\s+/g, '');
mainFileName = prompt.question('Main File Name : ').split('.')[0].trim().replace(/\s+/g, '');
authorName = prompt.question('Author Name : ').trim();
description = prompt.question('Description : ').trim();
console.log(`\nWhich database connection you want, Please enter number? \n1)PostgreSQL\n2)MongoDB\n3)No Database`);
const database = prompt('Please enter your chooice: ').trim();
const database = prompt.question('Please enter your chooice: ').trim();
databasename = database;

@@ -175,3 +177,3 @@ if (database === '1' || database.toLowerCase() === 'postgresql') {

if (!fs.existsSync(`./${mainFileName ? mainFileName : alterMainFilename}`)) {
const portNumber = prompt('Port Number : ', 8080);
const portNumber = prompt.question('Port Number (4 digit port number) : ');
const port = isNaN(portNumber) ? 8080 : parseInt(portNumber);

@@ -178,0 +180,0 @@

{
"name": "configure-express-app",
"version": "4.0.2",
"version": "5.0.0",
"description": "use npx configure-express-app",

@@ -16,6 +16,3 @@ "bin": {

"dependencies": {
"child_process": "^1.0.2",
"fs": "0.0.1-security",
"prompt-sync": "^4.2.0"
}
}

Sorry, the diff of this file is not supported yet

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