Variable encodeConst
encode: (src: string, urlsafe?: boolean) => string
Type Declaration
- (src: string, urlsafe?: boolean): string
- Parameters- src: string
- Optionalurlsafe: boolean- if - truemake the result URL-safe
 - Returns string- Base64 string 
 
ConstOptionalurlsafe: booleanif true make the result URL-safe
Base64 string
converts a UTF-8-encoded string to a Base64 string.