Available

amalgame-encoding

Base64, Hex, percent-encoding.

amc package add encoding GitHub ↗ ← Back to the ecosystem

Overview

Common encodings: Base64 (standard + URL-safe), hexadecimal, percent-encoding (URL). Pure Amalgame, dependency-free.

Features

  • Standard and URL-safe Base64 (with/without padding)
  • Hex encode/decode
  • Percent-encoding (URL component)
  • No C dependency
  • Used by crypto, net-websocket, Mosaic

Example

Minimal usage example — copy-paste runnable after install.

amc package add encoding

let b64 = Encoding.Base64Encode("hello world")  // "aGVsbG8gd29ybGQ="
let hex = Encoding.HexEncode([0xDE, 0xAD, 0xBE, 0xEF])  // "deadbeef"

At a glance

Related packages