old_contents: /* global process, require, __dirname, console */
  /* eslint import/no-extraneous-dependencies: ["error", {"peerDependencies": true}] */
  /**
   *
   * Simple NodeJS/Express Server
   *
   * ## Installation
   * ---------------------------
   * > touch .env
   * npm i -D dotenv express express-livereload compression body-parser
   *
   */
  const path = require('path');
  const cors = require('cors');
  const helmet = require('helmet');
  const express = require('express');
  const bodyParser = require('body-parser');
  const compression = require('compression');
  
  require('dotenv').load({
    path: path.join(__dirname, '.env')
  });
    
  const config = {
    port: process.env.PORT || 9080,
    debug: process.env.DEBUG || false,
    public: path.join(__dirname, 'public')
  };
  
  const server = express();
  server.disable('x-powered-by');
  server.use(cors());
  server.use(helmet());
  server.use(compression());
  server.use(bodyParser.json({ limit: '50mb' }));
  
  // Express server is used to serve static ressouces
  server.use('/', express.static(config.public));
  
  server.listen(config.port, () => {
    if (!config.debug) return;
    const msg = `Server is running under http://localhost:${port}`;
    console.log(`\x1b[32m${msg}\x1b[39m`);
  });
  
new_contents: /* global process, require, __dirname, console */
  /* eslint import/no-extraneous-dependencies: ["error", {"peerDependencies": true}] */
  /**
   *
   * Simple NodeJS/Express Server
   *
   * ## Installation
   * ---------------------------
   * 
   * `echo "PORT=9080" > .env`
   * npm i -D dotenv express cors helmet body-parser compression
   *
   */
  const path = require('path');
  const cors = require('cors');
  const helmet = require('helmet');
  const express = require('express');
  const bodyParser = require('body-parser');
  const compression = require('compression');
  
  require('dotenv').load({
    path: path.join(__dirname, '.env')
  });
    
  const config = {
    port: process.env.PORT || 9080,
    debug: process.env.DEBUG || false,
    public: path.join(__dirname, 'public')
  };
  
  const server = express();
  server.disable('x-powered-by');
  server.use(cors());
  server.use(helmet());
  server.use(compression());
  server.use(bodyParser.json({ limit: '50mb' }));
  
  // Express server is used to serve static ressouces
  server.use('/', express.static(config.public));
  
  server.listen(config.port, () => {
    if (!config.debug) return;
    const msg = `Server is running under http://localhost:${port}`;
    console.log(`\x1b[32m${msg}\x1b[39m`);
  });
  
subject: Update server.js