Lint CSS and HTML for email client support against the Can I Email database. v0.4.1 is the latest stable release, with slow release cadence. Key differentiators: programmatic API and CLI, TypeScript types included, supports flexible client selection via glob patterns. Unlike other tools, it uses the same data source as caniemail.com and is inspired by doiuse for web browser support.
npm install doiuse-emailNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to lint HTML for Gmail support using the programmatic API.
Upgrade Node.js to 12+ or use an older version of this package if needed.
Use import { doIUseEmail } from 'doiuse-email' instead of import doiuse from 'doiuse-email'.Update scripts that parse CLI output to expect an array of note objects instead of the previous object shape.
Ensure all CSS is inline within the HTML string passed to doIUseEmail.
Run 'npm install doiuse-email'. Use 'import { doIUseEmail } from 'doiuse-email' instead of require.Change 'import doiuse from 'doiuse-email'' to 'import { doIUseEmail } from 'doiuse-email''.Use ES module import syntax. Alternatively, set 'type': 'module' in package.json or use .mjs extension.