std/fmt
denobot 10ee73dbbc
chore: release 2024.10.24 (#6145)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-10-24 19:23:22 +09:00
..
bytes_test.ts test(fmt): handle missing group separator for 1000.1 in some locales (#6117) 2024-10-23 21:57:58 +09:00
bytes.ts refactor(archive,async,cli,csv,dotenv,encoding,expect,fmt,front-matter,fs,http,internal,log,net,path,semver,testing,text,webgpu,yaml): enable "exactOptionalPropertyTypes" option (#5892) 2024-09-04 14:15:01 +09:00
colors_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
colors.ts docs(fmt,fs,text,yaml): fix Markdown alerts (#5568) 2024-07-29 21:31:14 +10:00
deno.json chore: release 2024.10.24 (#6145) 2024-10-24 19:23:22 +09:00
duration_test.ts refactor(archive,async,cli,csv,dotenv,encoding,expect,fmt,front-matter,fs,http,internal,log,net,path,semver,testing,text,webgpu,yaml): enable "exactOptionalPropertyTypes" option (#5892) 2024-09-04 14:15:01 +09:00
duration.ts fix(async,csv,fmt): assign default value when undefined is passed (#5893) 2024-09-03 18:57:27 +10:00
printf_test.ts refactor(archive,cache,datetime,fmt,front-matter): align error messages to the style guide (#5706) 2024-08-21 14:42:02 +09:00
printf.ts docs(fmt): fix %f width typo in printf docs (#6139) 2024-10-24 13:58:50 +09:00
README.md docs(fmt): improve documentation (#5373) 2024-07-10 15:26:41 +10:00

Provides utilities for formatting text of different types:

import { format } from "@std/fmt/bytes";
import { red } from "@std/fmt/colors";

console.log(red(format(1337))); // Prints "1.34 kB"