Skip to content

v0.4.0 — Kaomoji, Heatmaps, Tables, Histograms & Comparisons

Choose a tag to compare

@AdametherzLab AdametherzLab released this 05 Mar 06:21
· 7 commits to main since this release

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 moods
  • kaomojiStatus(value, max) — map numeric values to mood faces via thresholds
  • kaomojiAll() and kaomojiThemes() 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