html2js-browserify
turn html into beautiful js, with browserify
Last updated 4 years ago by refractalize .
BSD-2-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install html2js-browserify 
SYNC missed versions from official npm registry.

Turn crummy HTML into beautiful Javascript

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
    

Current Tags

  • 1.3.0                                ...           latest (4 years ago)

6 Versions

  • 1.3.0                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.0                                ...           6 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 51
This Month 216
Last Day 0
Last Week 74
Last Month 82
Dependencies (2)
Dev Dependencies (4)

Copyright 2014 - 2016 © taobao.org |