stiletto
v0.6.0
Published
stylesheet inliner
Downloads
1
Maintainers
Readme
Stiletto
Given HTML, stiletto will inline your CSS properties into the style attribute.
Installation
$ npm i stiletto
Usage
import * as stiletto from "stiletto"
const html = "<p> ... </p>"
const css = "p { color: red }"
console.log(stiletto.inline(html, css))
// <p style="color:red;">...</p>
Copyright and License
Copyright (c) 2022 TANIGUCHI Masaya. All rights reserved. This package is released under MIT License. https://git.io/mit-license