Disponible
amalgame-encoding
Base64, Hex, percent-encoding.
Vue d'ensemble
Encodages courants : Base64 (standard + URL-safe), hexadécimal, percent-encoding (URL). Pure Amalgame, sans dépendance.
Caractéristiques
- ✓Base64 standard et URL-safe (avec/sans padding)
- ✓Hex encode/decode
- ✓Percent-encoding (URL component)
- ✓Aucune dépendance C
- ✓Utilisé par
crypto,net-websocket, Mosaic
Exemple
Exemple minimal d'utilisation — recopiable tel quel après l'install.
amc package add encoding
let b64 = Encoding.Base64Encode("hello world") // "aGVsbG8gd29ybGQ="
let hex = Encoding.HexEncode([0xDE, 0xAD, 0xBE, 0xEF]) // "deadbeef"
En bref
- Licence : Apache-2.0
- Installation :
amc package add encoding - Code source : amalgame-lang/amalgame-encoding
- Index officiel : amalgame-lang/packages-index