cfg-loader

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i cfg-loader

Weekly Downloads

10

Version

0.1.0

License

ISC

Unpacked Size

118 kB

Total Files

20

Last publish

Collaborators

  • plockare