A module for easily handling environment variables in Node.js projects with support for .yml and .json configuration.
Go to file
2016-08-04 16:09:44 +02:00
dist add keyValueObjectArray 2016-08-04 16:09:39 +02:00
test add keyValueObjectArray 2016-08-04 16:09:39 +02:00
ts add keyValueObjectArray 2016-08-04 16:09:39 +02:00
.gitignore initial 2016-06-19 17:33:54 +02:00
.gitlab-ci.yml initial 2016-06-19 17:33:54 +02:00
.npmignore initial 2016-06-19 17:33:54 +02:00
npmts.json initial 2016-06-19 17:33:54 +02:00
package.json 1.1.0 2016-08-04 16:09:44 +02:00
README.md cosmetics 2016-06-20 12:05:35 +02:00

qenv

provides an easy way for promised environments

Usage

qenv works with two files:

  • qenv.yml - specifies which ENV vars are required.
  • env.yml - specifies all env vars that are not already set in the current environment.

Now obviously you can set build specific env vars in many CI environments. So there we do not need an env.yml since all ENV vars are in place However when on another machine you can have a env.yml that will be added to the environment by qenv.

import {Qenv} from "qenv";

myQenv = new Qenv("path/to/dir/where/qenv.yml/is/","path/to/dir/where/env.yml/is(");