diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2023-10-31 09:15:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 09:15:32 -0500 |
commit | 224f303ee54c54d2147f03010385e8cc48e42869 (patch) | |
tree | b64c86baed2c7d4ea652eee233674188044e2da6 /runtime/lua/vim | |
parent | adbe7f368397da21465f27181e254dd3694820e9 (diff) | |
download | rneovim-224f303ee54c54d2147f03010385e8cc48e42869.tar.gz rneovim-224f303ee54c54d2147f03010385e8cc48e42869.tar.bz2 rneovim-224f303ee54c54d2147f03010385e8cc48e42869.zip |
feat(stdlib): add vim.base64 module (#25843)
Add base64 encode() and decode() functions to a vim.base64 module.
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/_meta/base64.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/base64.lua b/runtime/lua/vim/_meta/base64.lua new file mode 100644 index 0000000000..f25b4af234 --- /dev/null +++ b/runtime/lua/vim/_meta/base64.lua @@ -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 |