trigger-qconf

0.2.1 • Public • Published

trigger-qconf

NPM version NPM downloads

get all the values in the config file.

Install

# npm
npm i -g trigger-qconf

# yarn
yarn global add trigger-qconf

qconf-map file

module.exports = {
  // mysql key
  // host: slave, master
  // conf: username, password
  mysql: {
    // 1:conf string
    some_mysql: 'mysql_path_string',
    // 2: object that has a `qconf` attribute
    some_mysql: {
      qconf: 'mysql_path_string',
    }
  },

  // conf key: conf or kafka
  conf: {
    some_conf: 'conf_path_string',
  },
  kafka: {
    some_conf: 'conf_path_string',
  },

  // host key
  host: {
    some_host: 'host_path_string',
  },
  redis: {
    some_host: 'host_path_string',
  },

}

Usage

# flag: production
trigger-qconf file-path [flag]

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

trigger-qconf © ELEVEN, Released under the MIT License.
Authored and maintained by ELEVEN with help from contributors (list).

github.com/ryli · GitHub @ELEVEN · Twitter @ryliweb

Readme

Keywords

none

Package Sidebar

Install

npm i trigger-qconf

Weekly Downloads

6

Version

0.2.1

License

MIT

Unpacked Size

6.22 kB

Total Files

7

Last publish

Collaborators

  • ryli