text: const express = require('express'),
      fetch = require('node-fetch'),
      bodyParser = require('body-parser'),
      app = express();
  
  var myLimit = typeof(process.argv[2]) != 'undefined' ? process.argv[2] : '100kb';
  console.log('Using limit: ', myLimit);
  
  app.use(bodyParser.json({limit: myLimit}));
  
  app.all('*', async function (req, res, next) {
      // Set CORS headers: allow all origins, methods, and headers: you may want to lock this down in a production environment
      res.header("Access-Control-Allow-Origin", "*");
      res.header("Access-Control-Allow-Methods", "GET, PUT, PATCH, POST, DELETE");
      res.header("Access-Control-Allow-Headers", req.header('access-control-request-headers'));
      if (req.method === 'OPTIONS') {
          // CORS Preflight
          res.send();
      } else {
          const requestUrl = req.query['apiUrl'];
          const response = await fetch(requestUrl);
          const data = await response.json();
          res.json(data);
      }
  });
  
  app.set('port', process.env.PORT || 3000);
  
  app.listen(app.get('port'), function () {
      console.log('Proxy server listening on port ' + app.get('port'));
  });
  