https://github.com/featurist/html2js-browserify
for turning crummy HTML into beautiful Javascript, with browserify
https://github.com/featurist/html2js-browserify
Last synced: 6 months ago
JSON representation
for turning crummy HTML into beautiful Javascript, with browserify
- Host: GitHub
- URL: https://github.com/featurist/html2js-browserify
- Owner: featurist
- Created: 2013-12-18T11:20:19.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2020-03-13T20:42:04.000Z (almost 6 years ago)
- Last Synced: 2025-06-23T16:39:28.595Z (7 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 16
- Watchers: 6
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Turn crummy HTML into beautiful Javascript [](https://www.npmjs.com/package/html2js-browserify) [](https://www.npmjs.com/package/html2js-browserify) [](https://travis-ci.org/featurist/html2js-browserify)
npm install html2js-browserify
## How?
some.html
dude!
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](https://github.com/kangax/html-minifier).
```sh
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](https://www.featurist.co.uk/careers/).