Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.05 KB

README.md

File metadata and controls

30 lines (17 loc) · 1.05 KB

Turn crummy HTML into beautiful Javascript npm version npm Build Status

npm install html2js-browserify

How?

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

Options

  • minify if set to true, will minify the HTML. All other options are passed through to html-minifier.

    browserify -t [html2js-browserify --minify --collapseWhitespace] app.js

We're Hiring!

Featurist provides full stack, feature driven development teams. Want to join us? Check out our career opportunities.