Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pretty_benching/table.ts>TableBuilder

:sauropod: A small lib to make your Deno benchmarking progress and results look pretty
Latest
class TableBuilder
import { TableBuilder } from "https://deno.land/x/pretty_benching@v0.3.3/table.ts";

Constructors

new
TableBuilder(width: number, colorFn: colorFunction)

Properties

colorFn: colorFunction
lines: string[]
tempColorFn: colorFunction
width: number

Methods

private
getHSeparator(topLine?: string, bottomLine?: string)
private
getWSeparatorPositions(line: string)
private
isCap(index: number)
private
tableLine(
content?: string,
crosses?: { i: number; t: chars; }[],
chars?: charset,
)
cellLine(...cells: string[])
color(colorFn: colorFunction)
line(line: string)
tc(colorFn: colorFunction)