@ascii-graphs/renderer-email
v0.1.0
Published
Paired plain-text and HTML email output for portable ASCII charts
Maintainers
Readme
@ascii-graphs/renderer-email
Matching plain-text and accessible HTML alternatives for multipart email.
pnpm add @ascii-graphs/core @ascii-graphs/renderer-emailimport { layout, progress } from "@ascii-graphs/core";
import { renderEmailParts } from "@ascii-graphs/renderer-email";
const grid = layout(progress({ data: [{ label: "Deploy", value: 40 }] }));
const { text, html } = renderEmailParts(grid);Use text and html as the two alternatives of the same MIME message. Requires
Node.js 20 or newer. Licensed under MIT.
