Classes
Methods
# static encodeBuffer(buf) → {string}
Encodes a buffer to Unpadded Base64
Parameters:
Name | Type | Description |
---|---|---|
buf |
Buffer
|
The buffer to encode. |
The Unpadded Base64 string
string
# static encodeBufferUrlSafe(buf) → {string}
Encodes a buffer to Unpadded Base64 (URL Safe Edition)
Parameters:
Name | Type | Description |
---|---|---|
buf |
Buffer
|
The buffer to encode. |
The Unpadded Base64 string
string
# static encodeString(str) → {string}
Encodes a string to Unpadded Base64
Parameters:
Name | Type | Description |
---|---|---|
str |
string
|
The string to encode. |
The Unpadded Base64 string
string
# static encodeStringUrlSafe(str) → {string}
Encodes a string to Unpadded Base64 (URL Safe Edition)
Parameters:
Name | Type | Description |
---|---|---|
str |
string
|
The string to encode. |
The Unpadded Base64 string
string