Skip to content

A package to convert a MJML template from JSON syntax to XML

Notifications You must be signed in to change notification settings

mjmlio/json2mjml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MJML2JSON

Purpose

Converts a MJML template from an XML syntax to a valid JSON 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. Use the -s optional argument to stringify the output (and make it compatible with the MJML API).

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

About

A package to convert a MJML template from JSON syntax to XML

Resources

Stars

Watchers

Forks

Packages

No packages published