0.0.9
This function creates a new config object out of a yaml file.
(string)
Config
const configFromFile = await Config.fromFile('file.yaml');
This function creates a new config object out of multiple yaml files.
(Array<string>)
const configFromMultipleFiles = await Config.fromFiles(['file1.yaml', 'file2.yaml']);
This function returns a ENV variable by a given key.
(string | undefined)
This function returns a ENV variable by a given key. If the ENV is not found the function will throw an error.
string
This function returns the all the data of the current config object.
Object
This function returns a new Config for a given key.
This function returns a new Config for a given key. If the key is not found the function will throw an error.
This function returns a new Config for a given searchString.