A module for easily handling environment variables in Node.js projects with support for .yml and .json configuration.
Go to file
2019-10-01 12:32:40 +02:00
test fix(core): update 2019-08-06 17:41:45 +02:00
ts fix(core): update 2019-10-01 12:32:39 +02:00
.gitignore fix(core): update 2019-08-06 17:37:07 +02:00
.gitlab-ci.yml fix(core): update 2019-09-13 11:20:47 +02:00
.npmignore initial 2016-06-19 17:33:54 +02:00
npmextra.json fix(core): update 2019-08-06 17:37:07 +02:00
package-lock.json 4.0.6 2019-10-01 12:32:40 +02:00
package.json 4.0.6 2019-10-01 12:32:40 +02:00
README.md fix(core): update 2019-09-13 11:20:47 +02:00
tslint.json fix(core): update 2019-01-06 01:30:07 +01:00

@pushrocks/qenv

easy promised environments

Status for master

build status coverage report npm downloads per month Known Vulnerabilities TypeScript node JavaScript Style Guide

Usage

Use TypeScript for best in class instellisense.

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

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

For further information read the linked docs at the top of this readme.

MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy

repo-footer