std/fmt
Asher Gomez ad1dad6ce6
docs(cli,csv,datetime,fmt,fs,http,ini,semver,testing): assert optional properties on types/interfaces have @default tag (#4933)
* docs: assert optional properties on types/interfaces have `@default` tag

* work

* work

* work

* work

* work

* work

* fix

* fix

* Update fs/expand_glob.ts

* cleanups

* cleanups

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-07-11 09:21:37 +00:00
..
bytes_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
bytes.ts docs(cli,csv,datetime,fmt,fs,http,ini,semver,testing): assert optional properties on types/interfaces have @default tag (#4933) 2024-07-11 09:21:37 +00:00
colors_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
colors.ts docs(fmt): improve documentation (#5373) 2024-07-10 15:26:41 +10:00
deno.json chore(fmt): release fmt@1.0.0-rc.1 (#5372) 2024-07-10 15:05:25 +10:00
duration_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
duration.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
printf_test.ts fix(fmt): fix the case when mantissa exceeds 10 by rounding and exponent is negative (#5279) 2024-07-04 14:29:31 +09:00
printf.ts fix(fmt): fix the case when mantissa exceeds 10 by rounding and exponent is negative (#5279) 2024-07-04 14:29:31 +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"