jstify (v0.14.0) is a Browserify transform that pre-compiles Underscore and Lo-Dash templates with optional HTML minification via HTMLMinifier. It converts .ejs, .tpl, .jst, or .html files into CommonJS modules that export compiled template functions. Key differentiators: supports configurable engine (underscore, lodash, lodash-micro, or global), optional Lo-Dash imports simulation, customizable template and minifier options, and can disable minification. Release cadence is low (last release 2020-01-17). Typical use is within a Gulp/Grunt/webpack substitute legacy build pipeline.
npm install jstifyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates using jstify as a Browserify transform with Lodash engine and custom minifier options.
Consider migrating to a modern bundler like webpack or rollup with appropriate template loaders (e.g., underscore-template-loader).
Use the API (JavaScript) to pass RegExp options in templateOpts.
To override individual minifier options, pass false for options you want to disable, not an empty object.
Use engine: 'lodash-micro' if you only need _.escape and inline functions are not used.
Run 'npm install --save-dev jstify' to install it as a dev dependency.
Ensure browserify is required and an instance is created before calling .transform. Example: var b = browserify(); b.transform('jstify');