Send feedback
Package @google-cloud/rcloadenv (4.0.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
Interfaces
Functions
apply(variables, env, opts)
export declare function apply ( variables : Variable [], env ?: NodeJS . ProcessEnv , opts ?: {}) : NodeJS . ProcessEnv ;
Applies the provided raw variables to the given object.
Parameters Name Description variables
Variable []
env
NodeJS.ProcessEnv
opts
{}
Returns Type Description NodeJS.ProcessEnv
getAndApply(configName, env, opts)
export declare function getAndApply ( configName : string , env ?: NodeJS . ProcessEnv , opts ?: RCLoadEnvOptions ) : Promise
Retrieves all variables in the given config and mixes them into the given object.
Parameters Name Description configName
string
env
NodeJS.ProcessEnv
opts
RCLoadEnvOptions
Returns Type Description Promise <"\"process\"".__global.NodeJS.ProcessEnv >
{Promise}
getVariables(configName, opts)
export declare function getVariables ( configName : string , opts ?: RCLoadEnvOptions ) : Promise
Retrieves all variables in the given config.
Returns Type Description Promise <Variable []>
{Promise}
export declare function transform ( variables : Variable [], oldEnv ?: NodeJS . ProcessEnv , opts ?: TransformOptions ) : NodeJS . ProcessEnv ;
Transforms the given array of raw variables into a simple key-value object.
In: [{name:"...",value:"..."}, ...] Out: { VAR1: "...", VAR2: "...", ... }
Returns Type Description NodeJS.ProcessEnv
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]