You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,20 @@ Return as boolean.
84
84
85
85
Split value of the environment variable at each comma and return the resulting array where each value has been typecast according to the `type` parameter. An array can be provided as `fallback`.
86
86
87
+
### env.multi({spec})
88
+
89
+
Return a list of environment variables based on a `spec`:
90
+
91
+
```javascript
92
+
var config =getenv.multi({
93
+
foo:"FOO", // throws if FOO doesn't exist
94
+
bar: ["BAR", "defaultval"], // set a default value
95
+
baz: ["BAZ", "defaultval", "string"], // parse into type
0 commit comments