Skip to main content
Home
This release is 5 versions behind 1.0.8 — the latest version of @std/fmt. Jump to latest

@std/fmt@1.0.3
Built and signed on GitHub Actions

Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score100%
Downloads557/wk
Publisheda year ago (1.0.3)

Utilities for formatting values, such as adding colors to text, formatting durations, printf utils, formatting byte numbers.

bytes

Convert bytes to a human-readable string: 1337 → 1.34 kB

f
format

Convert bytes to a human-readable string: 1337 → 1.34 kB

colors

String formatters and utilities for dealing with ANSI color codes.

f
bgBlack

Set background color to black.

f
bgBlue

Set background color to blue.

f
bgBrightBlack

Set background color to bright black.

f
bgBrightBlue

Set background color to bright blue.

f
bgBrightCyan

Set background color to bright cyan.

f
bgBrightGreen

Set background color to bright green.

f
bgBrightMagenta

Set background color to bright magenta.

f
bgBrightRed

Set background color to bright red.

f
bgBrightWhite

Set background color to bright white.

f
bgBrightYellow

Set background color to bright yellow.

f
bgCyan

Set background color to cyan.

f