npm

Need private packages and team management tools?Check out npm Orgs. »

html2js-browserify

1.3.0 • Public • Published

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

install

npm i html2js-browserify

Downloadsweekly downloads

542

version

1.3.0

license

BSD-2-Clause

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability