Created
January 30, 2017 12:43
-
-
Save asci/b4b93ed731b7ab7bd35534eefde3f561 to your computer and use it in GitHub Desktop.
Juice JS example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const juice = require("juice"); | |
console.log(juice(` | |
<style>.test {width: 100px}</style> | |
<div class="test">Test</div> | |
`))// => "<div class="test" style="width: 100px;">Test</div>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment