npm.io
0.4.2 • Published 6 years ago

@cheapsteak/css-inline-wasm

Licence
MIT
Version
0.4.2
Deps
0
Size
833 kB
Vulns
0
Weekly
0
Stars
320

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