0.1.1 • Published 5 years ago

@clysema/env v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

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

5 years ago

0.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago