@aux4/config
v1.0.3
Published
Configuration Manager
Downloads
27
Maintainers
Readme
@aux4/config
Install
npme install --global @aux4/config
Usage
Create Configuration File
It can be a YAML or JSON file.
config.yaml
config:
dev:
host: localhost
port: 3000
prod:
host: aux4.io
port: 80
config.json
{
"config": {
"dev": {
"host": "localhost",
"port": 3000
},
"prod": {
"host": "aux4.io",
"port": 80
}
}
}
Get configuration
$ aux4-config --file config.yaml --name dev
{
"host": "localhost",
"port": 3000
}
$ aux4-config --file config.yaml --name dev/host
localhost