UNPKG
auri
Version:
beta (0.7.0-beta.0)
latest (3.1.2)
next (3.0.9-next.0)
3.1.2
3.1.1
3.1.0
3.0.9
3.0.9-next.0
3.0.8
3.0.7
3.0.6
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.0.0
2.0.0-next.0
1.1.0
1.0.2
1.0.1
1.0.0
1.0.0-next.5
1.0.0-next.3
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.1
0.8.0
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.7.0-beta.0
0.6.0
0.6.0-beta.2
0.6.0-beta.1
0.6.0-beta.0
0.5.4
0.5.3
0.5.2
0.5.1
0.4.1
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
Organize package changes and releases
github.com/pilcrowonpaper/auri
pilcrowonpaper/auri
auri
/
dist
/
utils
/
env.js
9 lines
(8 loc)
•
251 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
dotenv
from
"dotenv"
; dotenv.
config
();
export
function
env
(
key
) {
if
(key
in
process.
env
&&
typeof
process.
env
[key] ===
"string"
) {
return
process.
env
[key]; }
throw
new
Error
(
`Environment variable "
${key}
" is undefined`
); }