A plugin runner for transforming HTML email content before sending, maximizing compression without distortion. Current stable version is 0.4.1 (released 2016, no recent updates). It accepts an array of plugin functions that process HTML sequentially, with built-in support for a MinifierPlugin. Unlike monolithic minifiers, it offers composable processing steps. Minimal documentation and no active maintenance.
npm install html-preflightNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating an HTMLPreflight instance with a MinifierPlugin, running it on an HTML string with stats enabled.
Use .bind(pluginInstance) when passing methods as plugins.
Consider alternatives like 'juice' or 'email-comb' for email preprocessing.
Create a .d.ts file or use 'any' type.
Ensure each element in the plugins array is a function (e.g., use .bind() on methods).
Use dynamic import() or convert to CommonJS.
No dependency data recorded yet.