UNPKG
yunlongzha_try_nodejs
Version:
latest (1.0.0)
1.0.0
try it
yunlongzha_try_nodejs
/
textsubmit
/
node_modules
/
npm
/
test
/
packages
/
npm-test-env-reader
/
test.js
10 lines
(9 loc)
•
232 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
envs = []
for
(
var
e
in
process.
env
) {
if
(e.
match
(
/npm|^path$/i
)) envs.
push
(e +
'='
+ process.
env
[e]) } envs.
sort
(
function
(
a, b
) {
return
a === b ?
0
: a > b ? -
1
:
1
}).
forEach
(
function
(
e
) {
console
.
log
(e) })