Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…
'Require' minified HTML as a string
"Require" minified HTML as a string
npm install rhtml
var rhtml = require('rhtml');var minHTML = rhtml('./somepage.html');console.log(minHTML);
Uses the same resolution algorithm as require for maximum simplicity. Built on top of rfile and html-minifier.
What happens when npm’s amazing community gets together to share with one another? Buy a ticket »
how? learn more