How to use the mjml/package.json.version function in mjml

To help you get started, we’ve selected a few mjml examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github liminspace / django-mjml / mjml / node / tcpserver.js View on Github external
'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);
        });

mjml

MJML: the only framework that makes responsive-email easy

MIT
Latest version published 11 months ago

Package Health Score

85 / 100
Full package analysis