UNPKG
consigno-core
Version:
latest (1.0.0)
1.0.0
0.0.4
0.0.3
0.0.2
0.0.1
Consigno Core
consigno-core
/
config.js
7 lines
(5 loc)
•
231 B
JavaScript
View Raw
1
2
3
4
5
6
7
const
config =
require
(
'config'
);
const
cfg = { ...config, ...process.
env
};
exports
.
get
=
name
=>
cfg[name];
exports
.
has
=
name
=>
cfg[name] !==
undefined
;
exports
.
getBoolean
=
name
=>
cfg[name] ===
'true'
|| cfg[name] ===
true
;