html2js-browserify

JSON →
library 1.3.0 ·javascript
verified Jun 4, 2026

Browserify transform that converts HTML files into JavaScript modules by generating a JS string from the HTML content. Version 1.3.0 is the latest stable release. It integrates with Browserify's transform pipeline, allowing HTML files to be required as strings in Node.js/browser code. Supports optional minification via html-minifier. Differentiates from other HTML require transforms by its simple pass-through of options to html-minifier.