# mjml-core

> mjml-core

Latest version **5.4.1** (published 2026-09-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install mjml-core
pnpm add mjml-core
yarn add mjml-core
bun add mjml-core
```

## Health

**Score 68/100 (B)** — status: active.

Positive: has types package; no vulnerabilities; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 5.4.1 |
| Published | 2026-09-10 |
| First published | 2016-03-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/mjml-core) |
| Module format | CommonJS |
| Dependencies | 12 |
| Unpacked size | 85.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18235 |
| Maintainers | mjmlio, iryusa, loeck, ngarnier, meriadec, kmcb, totocap |

## Links

- npm: https://www.npmjs.com/package/mjml-core
- Repository: https://github.com/mjmlio/mjml
- Homepage: https://mjml.io
- Issues: https://github.com/mjmlio/mjml/issues
- npm.io page: https://npm.io/package/mjml-core

## Dependencies (12)

- [juice](https://npm.io/package/juice.md) ^11.1.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [cheerio](https://npm.io/package/cheerio.md) ^1.2.0
- [cssnano](https://npm.io/package/cssnano.md) ^7.1.9
- [postcss](https://npm.io/package/postcss.md) ^8.5.28
- [htmlnano](https://npm.io/package/htmlnano.md) 3.3.1
- [detect-node](https://npm.io/package/detect-node.md) ^2.0.4
- [js-beautify](https://npm.io/package/js-beautify.md) ^2.0.3
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.28.4
- [mjml-validator](https://npm.io/package/mjml-validator.md) 5.4.1
- [mjml-parser-xml](https://npm.io/package/mjml-parser-xml.md) 5.4.1
- [cssnano-preset-lite](https://npm.io/package/cssnano-preset-lite.md) ^4.0.6

## Recent versions

- 5.4.1 (latest) — 2026-09-10
- 5.2.0-beta.1 (beta) — 2026-05-06
- 5.0.0-alpha.11 (experimental) — 2026-02-10
- 4.7.0-beta.2 (next) — 2020-08-28
- 5.4.0 — 2026-06-29
- 5.3.0 — 2026-05-27
- 5.2.2 — 2026-05-19
- 5.2.1 — 2026-05-12
- 5.2.0 — 2026-05-07
- 5.1.0 — 2026-04-24
- 5.1.0-beta.1 — 2026-04-24
- 5.0.1 — 2026-04-16
- 5.1.0-alpha.1 — 2026-04-16
- 5.0.0 — 2026-04-16
- 5.0.0-beta.2 — 2026-03-19
- … 142 more at https://npm.io/package/mjml-core/versions

## README

## mjml-core

### Installation

```bash
npm install --save mjml-core
```

This is the core mjml library, composed by a set of functions for both parsing, and rendering mjml

### Usage

```javascript
import mjml2html from 'mjml'

async function example() {
  const result = await mjml2html(`code`)
  console.log(result)
}

example()
```

---
_Source: https://npm.io/package/mjml-core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
