mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 05:40:05 +08:00
615 B
615 B
title | description |
---|---|
data#base64 API | data#base64 API provides base64 encode and decode functions |
Available APIs >> data#toml
Intro
data#base64 API provides base64 encode and decode functions
let s:B = SpaceVim#api#import('data#base64')
let str1 = 'hello world!'
let str2 = s:B.encode(str1)
echo str1 == s:B.decode(str2)
functions
name | description |
---|---|
encode(str) |
encode string |
decode(str) |
decode string |