
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@emailens/cli
Advanced tools
CLI tool for email compatibility analysis — analyze, preview, and export email rendering across 12 email clients.
CLI tool for email compatibility analysis — preview how HTML emails render across 12 email clients (Gmail, Outlook, Apple Mail, Yahoo, Samsung, Thunderbird, HEY, Superhuman).
npm install -g @emailens/cli
Or use with npx:
npx @emailens/cli analyze email.html
emailens analyze <file>Analyze CSS compatibility and get per-client scores.
emailens analyze email.html
emailens analyze email.html --clients gmail-web,outlook-windows
emailens analyze email.html --json
cat email.html | emailens analyze -
emailens preview <file>Full preview pipeline: transforms, analysis, dark mode simulation, and optional screenshots.
emailens preview email.html
emailens preview email.html --dark-mode
emailens preview email.html --screenshots --out ./screenshots
emailens preview email.html --json
emailens export <file>Export a self-contained HTML or JSON report.
emailens export email.html -o ./report
emailens export email.html --json -o ./report
emailens export email.html --dark-mode --screenshots -o ./report
emailens clientsList all 12 supported email clients.
emailens clients
emailens clients --json
All file-processing commands share:
| Flag | Alias | Description |
|---|---|---|
--format | -f | Input format: html, jsx, mjml, maizzle |
--clients | -c | Comma-separated client IDs to filter |
--json | Output JSON instead of terminal table | |
--quiet | -q | Suppress spinners and decorations |
Preview and export add:
| Flag | Alias | Description |
|---|---|---|
--dark-mode | -d | Include dark mode simulation |
--screenshots | Capture screenshots (requires BROWSERLESS_URL) | |
--out | -o | Output directory |
The CLI can compile React Email (JSX/TSX), MJML, and Maizzle templates to HTML before analysis. Format is auto-detected from file extension, or specify with --format.
emailens analyze newsletter.tsx # Auto-detected as JSX
emailens analyze template.mjml # Auto-detected as MJML
emailens preview email.html --format maizzle # Explicit format
Framework compilers are optional peer dependencies — install only what you need:
npm install sucrase react @react-email/components @react-email/render # For JSX
npm install mjml # For MJML
npm install @maizzle/framework # For Maizzle
Screenshots require a Browserless instance and playwright-core:
npm install playwright-core
export BROWSERLESS_URL=ws://localhost:3000
emailens preview email.html --screenshots --out ./screenshots
Read from stdin with -:
cat email.html | emailens analyze -
echo '<html><body>Hello</body></html>' | emailens preview - --json
MIT
FAQs
CLI tool for email compatibility analysis — analyze, preview, and export email rendering across 21 email clients.
The npm package @emailens/cli receives a total of 45 weekly downloads. As such, @emailens/cli popularity was classified as not popular.
We found that @emailens/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.