Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more

pretty_bytes v1.0.0

Convert bytes to a human readable string: 1337 β†’ 1.34 kB

A utility for displaying file sizes for humans.

Note: This module was ported from pretty-bytes.

Usage

import { prettyBytes } from "https://deno.land/x/pretty_bytes@v1.0.0/mod.ts";

prettyBytes(1337); // => 1.34 kB

License

MIT