Const
Built-in byte-size parser, reversing SI or IEC suffixes into an exact byte-count string. Already installed by parse!createParser; defaults to IEC base 1024.
1024
import { parser } from "@neutrium/formatter/parse";parser.parse("1.5 KiB", { kind: "bytes" }); // "1536" Copy
import { parser } from "@neutrium/formatter/parse";parser.parse("1.5 KiB", { kind: "bytes" }); // "1536"
Built-in byte-size parser, reversing SI or IEC suffixes into an exact byte-count string. Already installed by parse!createParser; defaults to IEC base
1024.