henryitem-tools
v1.0.0
Published
提供了格式化的时间
Downloads
15
Maintainers
Readme
安装
npm install henryItem-tools
使用
const itools = require('henryItem-tools');
API
resolveCss
const htmlStr = '<html><head><style>body{background-color: #f0f0f0;}</style></head><body><div>hello world</div></body></html>';
const cssStr = itools.resolveCss(htmlStr);
console.log(cssStr); // body{background-color: #f0f0f0;}