Skip to content

aux4/config

Repository files navigation

@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

About

Configuration Manager

Resources

License

Stars

Watchers

Forks

Packages

No packages published