@eryx/encoding Module
JSON
Data encoding and decoding utilities.
This module re-exports all encoding sub-modules, giving convenient access to common binary-to-text encodings from a single import.
local encoding = require("@eryx/encoding")
local encoded = encoding.base64.encode(buffer.fromstring("Hello!"))
print(encoded) -- "SGVsbG8h"
local hex = encoding.hex.encode(buffer.fromstring("\xff\x0a"))
print(hex) -- "ff0a"
Available sub-modules: