Takes care of NODE_ENV, LOGGER_LEVEL and LOG_FILE enviroment variables.
$ npm install @clysema/env
const env = require("@clysema/env");
(async () => {
try {
console.log(await env());
} catch (e) {
console.log(e);
}
})();
// { env: 'production',
// isTest: false,
// isDevelopment: false,
// logger: { level: 'info', file: '/tmp/controller.log' } }