FormatOptions
import { FormatOptions } from "jsr:@ende/fmt/bytes";interface
interface FormatOptionsOptions for format.
Properties
bits
bits?: booleanUses bits representation.
Default: false
binary
binary?: booleanUses binary bytes (e.g. kibibyte).
Default: false
signed
signed?: booleanInclude plus sign for positive numbers.
Default: false
locale
locale?: boolean | string | string[]Uses localized number formatting. If it is set to true, uses default locale on the system. If it's set to string, uses that locale. The given string should be a BCP 47 language tag. You can also give the list of language tags.
minimumFractionDigits
minimumFractionDigits?: numberThe minimum number of fraction digits to display. If neither
minimumFractionDigits or maximumFractionDigits
are set, the number is formatted with 3 significant figures instead.
maximumFractionDigits
maximumFractionDigits?: numberThe maximum number of fraction digits to display. If neither
minimumFractionDigits or maximumFractionDigits
are set, the number is formatted with 3 significant figures instead.