Skip to content

Digits

widgetsdisplay

Digits: renders a numeric string as large 3-row ASCII art

Installation

$ bunx termuijs add digits

Copies the source into src/components/digits/ and installs @termuijs/core, @termuijs/widgets.

Usage

ts
import { Digits } from '@termuijs/widgets'
ts
new Digits(style: Partial<Style> = {}, opts: DigitsOptions = {})

API Reference

Digits

PropTypeRequiredDescription
colorColoroptional
#display#digits