@ryanuo/utils / common / decompress
Function: decompress()
ts
function decompress(str): string;Decompresses a string produced by compress.
Parameters
str
string
The compressed Base64 string.
Returns
string
The original decompressed string.
Example
ts
import { decompress } from '@ryanuo/utils'
decompress('aGVsbG8lMjB3b3JsZA%3D%3D') // => 'hello world'