Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Latest commit

 

History

History
21 lines (14 loc) · 602 Bytes

from-base64.md

File metadata and controls

21 lines (14 loc) · 602 Bytes

from-base64

from-base64 decodes a base64-encoded string. See also the inverse function to-base64.

Examples

  • (from-base64 "")""
  • (from-base64 "invalid") ➜ error
  • (from-base64 "aGVsbG8=")"hello"

Forms

(from-base64 encoded:string)string

  • encoded is an arbitrary expression.

from-base64 evaluates the given expression and coalesces the result to a string. If either of those steps fail, an error is returned. Otherwise the function will attempt to decode the value, returning the decoded data on success and an error otherwise.