html2js-browserify

turn html into beautiful js, with browserify

npm install html2js-browserify
7 downloads in the last week
45 downloads in the last month

Turn crummy HTML into beautiful Javascript

some.html

<html><body><h1>dude!</h1></body></html>

app.js

var html = require('./some.html');
console.log(html);

Then

# browserify -t html2js-browserify app.js
npm loves you