Class: Environment

Environment

Platform dependant utilities for the openEO JS Client.

Browser implementation

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.

Source:
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.

Source:
Throws:
Error

Environment

Platform dependant utilities for the openEO JS Client.

Node implementation

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.

Source:
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.

Source:
Throws:
Error