mirror of
https://github.com/neovim/neovim.git
synced 2026-04-23 15:55:36 +00:00
feat(stdlib): add vim.base64 module (#25843)
Add base64 encode() and decode() functions to a vim.base64 module.
This commit is contained in:
13
runtime/lua/vim/_meta/base64.lua
Normal file
13
runtime/lua/vim/_meta/base64.lua
Normal 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
|
||||
Reference in New Issue
Block a user