configure-express-app
Advanced tools
Comparing version 3.1.2 to 3.1.3
10
index.js
@@ -94,11 +94,11 @@ #!/usr/bin/env node | ||
\napp.use(helmet()); | ||
\n\napp.use(express.json({ limit: '500mb', extended: true }));\n | ||
\napp.use(express.json({ limit: '500mb', extended: true }));\n | ||
\napp.use(morgan('combined')) | ||
\napp.use('/api/', helloWorldRoute);\n | ||
\napp.use('/api/', helloWorldRoute); | ||
\nconsole.log(\`Starting the development server...\\n\`); | ||
\napp.get('/', (req, res) => res.send('Hello World!'))\napp.listen(port, () => console.log(\`Example app listening on port \${port\}!\\n\`)); | ||
\nconsole.log(\`Compiled successfully!\\n\`); | ||
\nconsole.log(\`You can now view ${ProjectName ? ProjectName : alterProjectName} in the browser.\\n\`); | ||
\nconsole.log('\\x1b[32m%s\\x1b[0m', \` Local : http://localhost:${port ? port : 8000}/api/helloworld \`); | ||
\nconsole.log(\`\\nProject running successfully ! \n\`); | ||
console.log(\`You can now view ${ProjectName ? ProjectName : alterProjectName} in the browser.\\n\`); | ||
console.log('\\x1b[32m%s\\x1b[0m', \` Local : http://localhost:${port ? port : 8000}/api/helloworld \`); | ||
console.log(\`\\nProject running successfully ! \n\`); | ||
`; | ||
@@ -105,0 +105,0 @@ fs.writeFileSync(`./${mainFileName ? mainFileName : alterMainFilename}.js`, jsContent); |
{ | ||
"name": "configure-express-app", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "use npx configure-express-app", | ||
@@ -5,0 +5,0 @@ "bin": { |
8131