UNPKG
@beesley/ts-env
Version:
latest (1.0.1)
1.0.1
1.0.0
An environment variable reader for TypeScript
github.com/bbeesley/ts-env
bbeesley/ts-env
@beesley/ts-env
/
src
/
string-array.ts
10 lines
(7 loc)
•
190 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
export
default
function
stringArray
(
key: string, separator =
','
) {
const
rawValue = process.
env
[key];
if
(!rawValue) {
return
undefined
; }
return
rawValue.
split
(separator); }