Safety

Untrusted input, strict encodings and the one error class: the parts that keep the rest honest.

  • Sanitize: sanitizeObject, sanitizeObjectCopy, safeJsonParse
  • Codecs: hex, base64 and base32, strict by default
  • Errors: UnsecureError and its codes