Module : encoding

Version : 1.0.0

Module Overview

This module provides the necessary utilities, which are required to encode and decode content using different URL encoding mechanisms and algorithms.

For information on the operations, which you can perform with this module, see the below Functions.

Functions

decodeBase64Url

Decodes the Base64 URL encoded string into a byte array.

decodeUriComponent

Decodes the given URI component into a string using the provided charset.

encodeBase64Url

Returns the Base64 URL encoded string value of the given byte array.

encodeUriComponent

Encodes the given URI component into a string using the provided charset.

Types

Error

Represents the Encoding module error.

Errors

DecodingError

Represents the Decoding error.

EncodingError

Represents the Encoding error.