Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

decode

  • decode(content: string): any
  • Decodes Base64 data

    example
    
    import {decode} from 'base64';
    decode("SSBsb3ZlIGNoaW5h");
    
    

    Parameters

    • content: string

      the content need to be decode

    Returns any

encode

  • encode(content: any): string
  • Encodes the data decoded by Base64 into a character string.

    example
    
    import {encode} from 'base64';
    encode("I love china");
    
    

    Parameters

    • content: any

      the content need to be encode

    Returns string