@clysema/env

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @clysema/env

Weekly Downloads

4

Version

0.1.1

License

MIT

Unpacked Size

9.57 kB

Total Files

8

Last publish

Collaborators

  • vicnala
  • vnavarroclysema