GitHub

DaffServerBase64Service

import { DaffServerBase64Service } from '@daffodil/core'

A base64 service meant to be loaded into SSR contexts.

@Injectable()
class DaffServerBase64Service implements DaffBase64Service {
  encode(str: string): string
  decode(str: string): string
}

() Methods

encode
string

Encodes an ASCII string to base64.

Parameters
Parameterstr: string
Description
decode
string

Decodes a base64 string to ASCII.

Parameters
Parameterstr: string
Description