@aux4/config

1.0.3 • Public • Published

@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

Package Sidebar

Install

npm i @aux4/config

Weekly Downloads

2

Version

1.0.3

License

Apache-2.0

Unpacked Size

21.2 kB

Total Files

12

Last publish

Collaborators

  • aux4-dev