Options
All
  • Public
  • Public/Protected
  • All
Menu

Base64

Helper methods to encode and decode Base64 strings.

Examples

 let s = "My String";
let encoded = Base64.encode(s);
let decoded = Base64.decode(encoded);

Hierarchy

  • Base64

Index

Methods

Methods

Static decode

  • decode(data: string): string
  • Base64 decode a string.

    Parameters

    • data: string

      the string to decode

    Returns string

Static encode

  • encode(data: string): string
  • Base64 encode a string.

    Parameters

    • data: string

      the string to encode

    Returns string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc