ezzy-environment
Advanced tools
Comparing version 0.1.10 to 0.1.11
{ | ||
"name": "ezzy-environment", | ||
"description": "A lightweight tool to provide common environment settings", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Moises Romero", |
@@ -1,2 +0,2 @@ | ||
# environment | ||
# ezzy-environment | ||
[](https://travis-ci.org/ezzygemini/ezzy-environment) | ||
@@ -3,0 +3,0 @@ [](https://coveralls.io/github/ezzygemini/ezzy-environment?branch=master) |
@@ -15,3 +15,6 @@ let pkg; | ||
console.log(`[PROCESS] ${JSON.stringify(process.env)}`); | ||
const json = JSON.stringify(process.env); | ||
if (json !== '{}') { | ||
console.log(`[PROCESS] ${json}`); | ||
} | ||
@@ -86,3 +89,3 @@ let env = argument(['ENVIRONMENT', 'NODE_ENV'], 'production'); | ||
*/ | ||
set(key, value) { | ||
set (key, value) { | ||
this[key] = value; | ||
@@ -97,3 +100,3 @@ } | ||
*/ | ||
get(key, defaultValue) { | ||
get (key, defaultValue) { | ||
return this[key] || defaultValue; | ||
@@ -100,0 +103,0 @@ } |
7973
187