Skip to content

Takes care of NODE_ENV, LOGGER_LEVEL and LOG_FILE enviroment variables.

License

Notifications You must be signed in to change notification settings

ingeniadevteam/clysema-env

Repository files navigation

@clysema/env

npm (scoped) npm bundle size (minified)

Takes care of NODE_ENV, LOGGER_LEVEL and LOG_FILE enviroment variables.

Install

$ npm install @clysema/env

Usage

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' } }

About

Takes care of NODE_ENV, LOGGER_LEVEL and LOG_FILE enviroment variables.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published