2357699f3e5018aed054a8b5a1a6e9514c19c79f
qenv
easy promised environments
Availabililty
Status for master
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(');
MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy
Description
A module for easily handling environment variables in Node.js projects with support for .yml and .json configuration.
Languages
TypeScript
100%