Options
All
  • Public
  • Public/Protected
  • All
Menu

Base64 mapper

Supports encoding and decoding of base64 input.

Configuration

interface IBase64Config {
  action?: Base64Action;
  decodeAs?: Base64DecodeAs;
}

enum Base64Action {
  ENCODE = "encode",
  DECODE = "decode",
}

enum Base64DecodeAs {
  STRING = "string",
  HEXSTRING = "hexstring",
}

const base64Mapper = Mappers.Base64(configuration: IBase64Config);

Example

const base64MapperDefault = Mappers.base64(); // Base64: action:"decode"|decodeAs:"string"

const base64MapperEncode = Mappers.base64({ action: Base64Action.ENCODE }); // Base64: action:"encode"

const base64DecodeAsHex = Mappers.base64({ decodeAs: Base64DecodeAs.HEXSTRING }); // Base64: action:"decode"|decodeAs:"hexstring"

Hierarchy

  • Base64

Implements

Index

Constructors

constructor

  • new Base64(__namedParameters?: object): Base64

Properties

action

action: Base64Action = Base64Action.DECODE

decodeAs

decodeAs: Base64DecodeAs = Base64DecodeAs.STRING

name

name: string = "Base64"

outputType

outputType: IOutputType = IOutputType.string

Static description

description: string = "Base64"

Static id

id: string = "BASE64"

Methods

config

transform

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • 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