0.0.4 • Published 3 years ago
confyg v0.0.4
confyg
Getting Started
- create a folder called config.
- place one or more .yaml (name.yaml) files in here.
- require confyg anywhere in your project and use it like below.
my-project/config/one.yaml
first:
name: 'value'
my-project/config/two.yml
second:
name: 'value'
const config = require('confyg')
console.log(config)
/*
{
second: { name: 'value' },
first: { name: 'value'}
}
*/