feat(stdlib): add vim.base64 module (#25843)

Add base64 encode() and decode() functions to a vim.base64 module.
This commit is contained in:
Gregory Anders
2023-10-31 09:15:32 -05:00
committed by GitHub
parent adbe7f3683
commit 224f303ee5
10 changed files with 448 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
--- @meta
--- Encode {str} using Base64.
---
--- @param str string String to encode
--- @return string Encoded string
function vim.base64.encode(str) end
--- Decode a Base64 encoded string.
---
--- @param str string Base64 encoded string
--- @return string Decoded string
function vim.base64.decode(str) end