New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mjml2json

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml2json

## Purpose

  • 0.0.1
  • npm
  • Socket score

Version published
Weekly downloads
146
decreased by-31.13%
Maintainers
1
Weekly downloads
 
Created
Source

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]

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

JSON2MJML

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc