UNPKG

base256-archive

Version:

Simple archive format that produces a base256-encoded string.

17 lines (16 loc) 577 B
type Packed = string; type PackableValue = number | string; type PackableArray = PackableValue[]; type PackableObject = Record<PackableValue, PackableValue>; type Packable = PackableArray | PackableObject; type PackOptions = { encode?: boolean; }; type UnpackedValue = string; type UnpackedArray = UnpackedValue[]; type UnpackedObject = Record<UnpackedValue, UnpackedValue>; type Unpacked = UnpackedArray | UnpackedObject; type UnpackOptions = { decode?: boolean; }; export type { Packed, PackableValue, Packable, PackOptions, UnpackedValue, Unpacked, UnpackOptions };