Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
var mjml = require('mjml'),
mjml_maj_ver = parseInt(require('mjml/package.json').version.split('.')[0]),
net = require('net'),
fs = require('fs'),
argv = process.argv.slice(2),
server = null,
conf = {
host: '127.0.0.1',
port: '28101',
touchstop: null,
mjml: {}
};
function terminate(exit_code) {
if (server && server.listening) {
server.close(function () {
process.exit(exit_code);
});