Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

json2mjml

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json2mjml

## Purpose

  • 0.0.1
  • npm
  • Socket score

Version published
Weekly downloads
536
increased by224.85%
Maintainers
1
Weekly downloads
 
Created

JSON2MJML

Purpose

Converts a MJML template from a JSON syntax to a valid XML syntax.

Installation

npm install

Optional: if you get an error like command not found: babel-node when running it, run npm install babel-cli -g.

Usage

Input and output filenames must be set, both with their extensions.

babel-node mjml2json.js input output [-s]

You can run a test on the provided styleguide with npm run test.

MJML2JSON

If you need to convert a MJML template from a XML syntax to a valid JSON syntax, check MJML2JSON.

FAQs

Package last updated on 12 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts