Environment variables
Note
WingBlade.env
can also be used as a normal JavaScriptObject
.
WingBlade.env.get
Use
Return an environment variable, and supply a fallback value if given.
Syntax
?String: WingBlade.env.get(String: key, ?String: fallbackValue);
WingBlade.env.set
Use
Set an environment variable with given value.
Syntax
undefined: WingBlade.env.set(String: key, String: value);
WingBlade.env.delete
Use
Remove an environment variable.
Syntax
undefined: WingBlade.env.delete(String: key);
WingBlade.env.has
Use
Indicate whether or not an environment variable exists.
Syntax
Boolean: WingBlade.env.has(String: key);
WingBlade.env.toObject
Use
Return a snapshot of all current environment variables as an Object
.
Syntax
Object: WingBlade.env.toObject();