UNPKG
deno
Version:
latest (2.8.2)
lts (2.2.15)
2.8.2
2.8.1
2.8.0
2.7.14
2.7.13
2.7.12
2.7.11
2.7.10
2.7.9
2.7.8
2.7.7
2.7.6
2.7.5
2.7.4
2.7.3
2.7.1
2.6.8
2.6.7
2.6.6
2.6.5
2.6.4
2.6.3
2.6.2
2.6.1
2.6.0
2.5.7
2.5.6
2.5.5
2.5.4
2.5.3
2.5.2
2.5.1
2.5.0
2.4.4
2.4.3
2.4.2
2.4.1
2.4.0
2.3.7
2.3.6
2.3.5
2.3.4
2.3.3
2.3.2
2.3.1
2.3.0
2.2.15
2.2.14
2.2.13
2.2.12
2.2.11
2.2.10
2.2.9
2.2.8
2.2.7
2.2.6
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.14
2.1.13
2.1.12
2.1.11
2.1.10
2.1.9
2.1.8
2.1.7
2.1.6
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.46.3
1.46.2
1.46.1
1.46.0
0.1.1
0.1.0
0.0.6
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
A bridge to Deno.
github.com/YounGoat/nodejs.deno
YounGoat/nodejs.deno
deno
/
functions
/
env.js
20 lines
(15 loc)
•
303 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
'use strict'
;
const
MODULE_REQUIRE
=
1
/* built-in */
/* NPM */
/* in-package */
;
/** * Get environment variable(s). *
@param
{
string
} [name] *
@return
{
object | string
} */
function
env
(
name
) {
return
name ? process.
env
[name] : process.
env
; }
module
.
exports
= env;