Skip to content

aisbreaker-api-js - v0.1.15 / utils/StringUtils

Module: utils/StringUtils

Table of contents

Functions

Functions

base64ToBytes

base64ToBytes(base64): Uint8Array

Parameters

NameType
base64string

Returns

Uint8Array

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/utils/StringUtils.ts:9


base64ToString

base64ToString(base64): string

Parameters

NameType
base64string

Returns

string

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/utils/StringUtils.ts:68


bytesToBase64

bytesToBase64(bytes): string

Parameters

NameType
bytesUint8Array

Returns

string

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/utils/StringUtils.ts:13


stringToBase64

stringToBase64(str): string

Parameters

NameType
strstring

Returns

string

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/utils/StringUtils.ts:63


stringToUtf8Bytes

stringToUtf8Bytes(str): Uint8Array

Parameters

NameType
strstring

Returns

Uint8Array

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/utils/StringUtils.ts:33


utf8BytesToString

utf8BytesToString(bytes): string

Parameters

NameType
bytesUint8Array

Returns

string

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/utils/StringUtils.ts:56

Released under the MIT License.