html2slack

JSON →
library 1.9.1 ·javascript
verified Jun 4, 2026

A Node.js library (v1.9.1) that converts a subset of HTML to JSON formatted Slack attachments using html-minifier and fast-html-parser. It supports bold, italic, strikethrough, inline and multi-line code, quotes, links, ordered/unordered lists, and basic tables. The HTML must contain a <body> with <section> elements. Slack mrkdwn formatting is applied automatically. Release cadence is low, no major changes in recent history. Differentiator: allows reusing HTML templating for Slack bot messages.