Socket
Book a DemoInstallSign in
Socket

mailwindi

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailwindi

WindiCSS Email template compiler

0.1.1
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source



📫
mailwindi




WindiCSS Email template compiler



❓ What?

Creating HTML email template has, and probably always will, be a pain. This package is designed to try & make it a bit easier to use by letting you use WindiCSS to handle styles for your email templates.

👶 Example

A basic example to show how it works:

<!-- input.html -->
<html>
  <body>
    <p class="font-bold text-lg">Welcome</p>
  </body>
</html>

Run the following command:

mailwindi -i input.html

And will generate the following inlined HTML file:

<html>
  <body>
    <p class="font-bold text-lg" style="font-size: 18px; font-weight: 700;">
      Welcome
    </p>
  </body>
</html>

🚀 Install

Install the CLI globally

npm i -g mailwindi

Or use npx

npx mailwindi

🦄 Usage

Design your email template in plain HTML & WindiCSS utility classes like you normally would for the web.

Then run the following command to generate the same email template but with all styles inlined.

mailwind -i input.html

🔧 Options

--input: Input file path

  • Alias: -i
  • Default: index.html
  • Optional: true

--minify: Output file path

  • Alias: -m
  • Default: [NAME]-inline.html
  • Optional: true

--config: Config file path

  • Alias: -c
  • Default: ./windi.config.js
  • Optional: true

❤️ Credits

Keywords

css

FAQs

Package last updated on 05 Jun 2022

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.