You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mjml-serve

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-serve

Serves mjml files for development

0.0.7
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Simple MJML development server

mjml-serve is a very simple command line tool for hosting .mjml files while developing. It allows you to view the email in your browser as html while developing.

Installation

npm install -g mjml-serve

Usage

mjml-serve by default will look for .mjml files in the cwd it is run from. To begin hosting files create an mjml file in your current directory.

echo "<mj-body><mj-section><mj-column><mj-text>Hello World</mj-text></mj-column></mj-section></mj-body>" > example.mjml

Then run the server

mjml-serve

And open your browser to http://localhost:5432/example.mjml

You can also specify a directory for the server to look for mjml files for

mjml-serve relative/path/to/dir/

or

mjml-serve /absolute/path/to/dir/

Keywords

mjml

FAQs

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.