1.1.0 • Published 5 years ago

config-server-client v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

config-server-client

license

npm downloads

An npm package to get configurations from a Spring Cloud Config Server and transforms to env vars.

Table of Contents

Install

npm:

npm i -s config-server-client

Usage

const  ConfigServerClient = require('config-server-client');

  

console.log(configServerClient.loadSync());

// script

Options

ItemDescriptionDefault
config.server.urlThe endpoint of the Spring Cloud Config Serverprocess.env.CONFIG_SERVER_URL
config.server.authAn optional Authorization Header to send (e.g Basic xpto=)process.env.CONFIG_SERVER_AUTH
envEnvironment (e.g development, test, production)process.env.CONFIG_SERVER_ENV or process.env.NODE_ENV
application.nameApplication name (e.g myAwesomeApp)process.env.CONFIG_SERVER_APP
prefixOne prefix to use in resulted env name (eg process.env.VUEAPP(none)
stringifyIndicate if needs to JSON.stringify contents (usually to webpack)false

Contributors

Name
Hermógenes Ferreira

License

MIT © Hermógenes Ferreira

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago