0.1.0 • Published 6 years ago

cfg-loader v0.1.0

Weekly downloads
45
License
ISC
Repository
github
Last release
6 years ago

#Config loader

Cfg loader can load up configs for different environments from config files, env variables or newly can read secrets from filesystem. In particular, this can be used to load passwords from Docker secrets stored in /run/secrets/<secret_name> files.

Install

# with npm
npm install cfg-loader

# or with Yarn
yarn add cfg-loader

Usage

import config, {load as configLoad} from 'cfg-loader';

configLoad(__dirname + '/../config');

// now the config property will contain the whole configuration 
console.log(config);
0.1.0

6 years ago

0.0.8

6 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago