Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

yields/mixtur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mixtur(e)

inline css with html.

Installation

npm install mixtur

Example

p {
  color: red;
  font-size: 16px;
}
<p></p>
<p style="color: red; font-size: 16px;"></p>

this lib uses MatthewMueller/cheerio instead of jsdom, which means whatever html structure you pass, you will get the same back, for example juice(<p></p>) will return <html><body><p></p></body></html>, this lib will return <p></p>.

Use juice if you care about !important, or complex stylesheets, this lib is for simple stylesheets with simple html.

License

MIT

About

inline css with html

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published