# mjml-migrate-node6

> A tool to migrate a template from MJML 3 to MJML 4

Latest version **4.9.3** (published 2021-03-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install mjml-migrate-node6
pnpm add mjml-migrate-node6
yarn add mjml-migrate-node6
bun add mjml-migrate-node6
```

Provides the command `migrate`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.9.3 |
| Published | 2021-03-25 |
| First published | 2021-03-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 10.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nicolas Garnier |
| Maintainers | randriese |

## Links

- npm: https://www.npmjs.com/package/mjml-migrate-node6
- Repository: https://github.com/randriese/mjml
- Homepage: https://github.com/randriese/mjml#readme
- Issues: https://github.com/randriese/mjml/issues
- npm.io page: https://npm.io/package/mjml-migrate-node6

## Dependencies (6)

- [yargs](https://npm.io/package/yargs.md) ^16.1.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [js-beautify](https://npm.io/package/js-beautify.md) ^1.6.14
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.13.10
- [mjml-core-node6](https://npm.io/package/mjml-core-node6.md) 4.9.3
- [mjml-parser-xml-node6](https://npm.io/package/mjml-parser-xml-node6.md) 4.9.3

## Recent versions

- 4.9.3 (latest) — 2021-03-25
- 4.9.2 — 2021-03-25
- 4.9.1 — 2021-03-25

## README

# mjml-migrate

## Purpose

Makes a template following the MJML 3 syntax compatible with MJML 4.

## Installation

Clone the repo & `npm install` or install via NPM: `npm install mjml-migrate`

## Usage

`migrate <input> <output>`

## What happens

* `mj-container` is removed and its attributes are passed to `mj-body`
* Unitless values are converted to `px`
* `mj-social`'s syntax is replaced with the v4 syntax
* Unsupported tags (defined in `unavailableTags` in `config.js`) are removed

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