html-style

0.0.6 • Public • Published

html-style

将 css 样式应用到 html 行内样式。

Usage

const transform = require("html-style");
transform('<div>hello</div>', 'div {color: red}');
// output <div style="color: red;">hello</div>

Readme

Keywords

none

Package Sidebar

Install

npm i html-style

Weekly Downloads

1

Version

0.0.6

License

ISC

Unpacked Size

49.1 kB

Total Files

12

Last publish

Collaborators

  • alexayan