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

Latest commit

 

History

History
19 lines (12 loc) · 507 Bytes

to-base64.md

File metadata and controls

19 lines (12 loc) · 507 Bytes

to-base64

to-base64 encodes string with base64. See also the inverse function from-base64.

Examples

  • (to-base64 "")""
  • (to-base64 "hello")"aGVsbG8="

Forms

(to-base64 data:string)string

  • data is an arbitrary expression.

to-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 encode the string with base64 and return the result.