@cheapsteak/css-inline-wasm
TypeScript icon, indicating that this package has built-in type declarations

0.4.2 • Public • Published

css-inline

ci

A WASM package for inlining CSS into HTML documents.

import { inline } from "css_inline";

var inlined = inline(
  "<html><head><title>Test</title><style>h1 { color:red; }</style></head><body><h1>Test</h1></body></html>",
  { remove_style_tags: true }
)
// Do something with the inlined HTML, e.g. send an email

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.4.20latest

Version History

VersionDownloads (Last 7 Days)Published
0.4.20
0.4.10
0.0.1-alpha.10
0.0.1-alpha.00
0.0.10

Package Sidebar

Install

npm i @cheapsteak/css-inline-wasm

Weekly Downloads

0

Version

0.4.2

License

MIT

Unpacked Size

853 kB

Total Files

6

Last publish

Collaborators

  • cheapsteak