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

json2mjml

Package Overview
Dependencies
Maintainers
5
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json2mjml

A package to convert a MJML template from JSON to XML

  • 1.0.1
  • npm
  • Socket score

Version published
Weekly downloads
773
decreased by-14.02%
Maintainers
5
Weekly downloads
 
Created
Source

json2mjml

Purpose

Converts a MJML template from JSON to XML.

Installation

yarn add json2mjml

# or

npm i json2mjml

Usage

CLI

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

json2mjml input.json output.mjml

Require hook

import json2mjml from 'json2mjml'

// or

const json2mjml = require('json2mjml')

const input = {
  tagName: 'mjml',
  children: [
    // ... your mjml
  ]
}
const output = json2mjml(input)

console.log(output)

mjml2json

If you need to convert a MJML template from a XML to JSON, check mjml2json.

FAQs

Package last updated on 27 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