Skip to content

Latest commit

 

History

History
76 lines (52 loc) · 2.62 KB

api.md

File metadata and controls

76 lines (52 loc) · 2.62 KB

ConfigAPI

This class provides methods to access the config for Adobe I/O libraries.

Kind: global class

configAPI.get([key], [source])

Gets the value for a key in the Config. If no parameters are specified, it will return all keys and values of the consolidated Config.

Kind: instance method of ConfigAPI

Param Type Default Description
[key] string "''" the key to get the value from
[source] string 'global', 'local', or 'env'. Defaults to searching the consolidated config.

configAPI.set(key, value, [local])

Set the value for a key in the Config.

Kind: instance method of ConfigAPI

Param Type Default Description
key string the key to set the value to
value string the value to save for the key
[local] boolean false Set to true to save the value in the local config. Defaults to false (save to global config).

configAPI.delete(key, [local])

Delete a key and its value in the Config.

Kind: instance method of ConfigAPI

Param Type Default Description
key string the key to delete the value from
[local] boolean false Set to true to delete the value in the local config. Defaults to false (save to global config).

configAPI.reload()

Reload the Config from all the config file(s)

Kind: instance method of ConfigAPI

configAPI.getPipedData() ⇒ Promise.<string>

Pipe data from stdin.

Kind: instance method of ConfigAPI

configAPI.dotenv(the)

Hoists variables in the ./.env file to process.env

Kind: instance method of ConfigAPI

Param Type Description
the Object dotenv object