🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@templatical/import-html

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@templatical/import-html

Convert HTML email templates to Templatical format

latest
Source
npmnpm
Version
0.10.4
Version published
Maintainers
1
Created
Source

@templatical/import-html

Convert HTML email templates to Templatical format.

Designed for table-based marketing email HTML — output of MJML, Mailchimp/SendGrid/Campaign Monitor exports, hand-coded HTML emails. Modern (flex/grid) HTML is preserved via HTML-fallback blocks.

Install

npm install @templatical/import-html

Usage

import { convertHtmlTemplate } from '@templatical/import-html';

const html = await fetch('/path/to/email.html').then((r) => r.text());
const { content, report } = convertHtmlTemplate(html);

console.log(report.summary);
console.log(report.warnings);

See Migration from HTML for the full element-mapping table.

License

MIT

Keywords

email

FAQs

Package last updated on 15 Jun 2026

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