- Source:
Methods
(static) base64encode(str) → {string}
Encodes a string into Base64 encoding.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | String to encode. |
- Source:
Returns:
String encoded in Base64.
- Type
- string
(static) base64encode(str) → {string}
Encodes a string into Base64 encoding.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | String to encode. |
Returns:
String encoded in Base64.
- Type
- string
(async, static) saveToFile(data, filename)
Streams data into a file.
NOTE: Only supported in a NodeJS environment.
Parameters:
Name | Type | Description |
---|---|---|
data |
Stream | Data stream to read from. |
filename |
string | File path to store the data at. |
Throws:
Error