v0.4.0 — Kaomoji, Heatmaps, Tables, Histograms & Comparisons
What's New
5 features that make webhook-spark the most fun AND useful terminal/text visualization library on npm.
Kaomoji Mood System
kaomoji(mood, options?)— 5 themes (classic, cats, bears, stars, minimal) x 13 moodskaomojiStatus(value, max)— map numeric values to mood faces via thresholdskaomojiAll()andkaomojiThemes()helpers- Includes
ᓚᘏᗢ(cats/happy) and☆*:.。.o(≧▽≦)o.。.:*☆(celebrating)
2D Heatmap
heatmap(data, options?)— GitHub contribution graph style, pure text- Row/column labels, custom shade characters, min/max override
Box-Drawing Tables
miniTable(rows, options?)— 4 border styles (single, double, rounded, none)kvTable(entries)— quick key-value display- Column alignment, header separators, maxWidth truncation
Histogram
histogram(values, options?)— frequency distribution with configurable bins- Show counts or percentages, custom fill character
Side-by-Side Compare
compare(label1, val1, label2, val2, options?)— visual before/after- 3 modes: bars, spark (with sparklines), compact (single line)
- Returns delta, percentage change, direction arrow
Stats
- 33 new tests (63 total passing)
- +977 lines across 6 files
- Still zero dependencies, TypeScript first