v1.0.0
Convert bytes to a human readable string: 1337 β 1.34 kB
Attributes
Popular
Repository
Current version released
3 years ago
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