@ende/encoding/ascii85
ende add jsr:@ende/encodingVersion 2026.10.15 on JSR.
Utilities for working with ascii85 encoding.
Specifying a standard and delimiter
By default, all functions are using the most popular Adobe version of ascii85
and not adding any delimiter. However, there are three more standards
supported - btoa (different delimiter and additional compression of 4 bytes
equal to 32), Z85 and
RFC 1924. It's possible to use a
different encoding by specifying it in options object as a second parameter.
Similarly, it's possible to make encode add a delimiter (<~ and ~> for
Adobe, xbtoa Begin and xbtoa End with newlines between the delimiters and
encoded data for btoa. Checksums for btoa are not supported. Delimiters are not
supported by other encodings.)
Exports
Ascii85Standard— Supported ascii85 standards for EncodeAscii85Options and DecodeAscii85Options.decodeAscii85— Decodes a ascii85-encoded string.DecodeAscii85Options— Options for decodeAscii85.encodeAscii85— Converts data into an ascii85-encoded string.EncodeAscii85Options— Options for encodeAscii85.Uint8Array_— Proxy type of {@code Uint8Array<ArrayBuffer>} or {@code Uint8Array} in TypeScript 5.7 or below respectively.