@montflow/format
v0.0.1
Published
ANSI terminal text formatting with an Effect Pipeable API
Maintainers
Readme
@montflow/format
ANSI terminal text formatting with an Effect Pipeable API.
Usage
import { Format } from '@montflow/format';
const out = Format.make('start').pipe(Format.bold, Format.color('black'), Format.compile);API
Format.make(text)— create aFormat.Format.bold,Format.color(input)— pipeable transforms.coloraccepts aColoror plain label (black,red,green,yellow,blue,magenta,cyan,white,gray).Format.compile(format)— render to string.Format.stripAnsi(text)— remove ANSI escapes.
