All Projects → featurist → html2js-browserify

featurist / html2js-browserify

Licence: other
for turning crummy HTML into beautiful Javascript, with browserify

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].