4.0.5
Implementation of the multibase specification.
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
Create a new Uint8Array with the multibase varint+code.
(BaseNameOrCode)
The multibase name or code number.
(Uint8Array)
The data to be prefixed with multibase.
Uint8Array
:
Encode data with the specified base and add the multibase prefix.
(BaseNameOrCode)
The multibase name or code number.
(Uint8Array)
The data to be encoded.
Uint8Array
:
string
:
(Uint8Array)
string
:
Takes a Uint8Array or string encoded with multibase header, decodes it and returns the decoded buffer
((Uint8Array | string))
Uint8Array
:
(any)
(any)
(any)
Uint8Array
:
(string)
Uint8Array
:
Type: BaseCode
Type: BaseCode
Type: BaseCode
Is the given data multibase encoded?
((Uint8Array | string))
Validate encoded data
(BaseNameOrCode)
(Uint8Array)
void
:
Get the encoding by name or code
(BaseNameOrCode)
Base
:
Type: BaseName
Type: BaseName
Type: BaseCode
Type: BaseCode
Get encoding from data
((string | Uint8Array))
Base
:
Type: CodecFactory
name, code, implementation, alphabet
Type: Record<BaseName, Base>
Type: Record<BaseName, Base>
Type: Record<BaseCode, Base>
Type: Record<BaseCode, Base>
(any)
(any)
(any)
(any)
(Uint8Array)
string
:
(string)
Uint8Array
:
(any)
(any)
(any)
(any)
(Uint8Array)
string
:
(string)
Uint8Array
:
(any)
(any)
(any)
(any)
(Uint8Array)
string
:
(string)
Uint8Array
:
Class to encode/decode in the supported Bases
(Uint8Array)
string
:
(string)
Uint8Array
:
RFC4648 Factory
(number)
CodecFactory
:
((ArrayBufferView | ArrayBuffer))
string
:
(string)
Uint8Array
:
Returns a new Uint8Array created by concatenating the passed Arrays
Uint8Array
: