stiletto
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

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

Package Sidebar

Install

npm i stiletto

Weekly Downloads

11

Version

0.6.0

License

MIT

Unpacked Size

4.67 kB

Total Files

6

Last publish

Collaborators

  • taniguchi