@jscore/envar

1.0.0 • Public • Published

envar

Normalize environment variables, and just that.

Install

npm i -S @brunoscopelliti/envar

Usage

const normalize = require("@jscore/envar");

// process.env;
// {
//   ENABLE_SSL: "true",
//   FEATURE_FLAG: "{ \"enableA\": true, \"enableB\": false }",
//   NODE_ENV: "production",
//   PORT: "3000"
// }

normalize(process.env);

{
  ENABLE_SSL: true,
  FEATURE_FLAG: {
    enableA: true,
    enableB: false
  },
  NODE_ENV: "production",
  PORT: 3000
}

Package Sidebar

Install

npm i @jscore/envar

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

5.03 kB

Total Files

7

Last publish

Collaborators

  • npm-support