Skip to content
Snippets Groups Projects
Commit 4fbcc219 authored by Sigmund, Dominik's avatar Sigmund, Dominik
Browse files

cleanup

parent 8c105a9a
No related branches found
No related tags found
1 merge request!1Master
# config # config
[![pipeline status](https://it-devops-01.br-edv.brnet.int/general/config/badges/master/pipeline.svg)](https://it-devops-01.br-edv.brnet.int/general/config/commits/master) Simple Config with ENV Support.
[![coverage report](https://it-devops-01.br-edv.brnet.int/general/config/badges/master/coverage.svg)](https://it-devops-01.br-edv.brnet.int/general/config/commits/master)
[![Quality Gate Status](https://it-devops-01.br-edv.brnet.int:8999/api/project_badges/measure?project=config&metric=alert_status)](https://it-devops-01.br-edv.brnet.int:8999/dashboard?id=config)
Simple Config Log with HashiCorp Vault support.
## Installation ## Installation
- `npm config set @br:registry https://npm.br-edv.brnet.int` - `npm install --save @plastdev/config`
- `npm config set strict-ssl false`
- `npm install --save @br/config`
## Usage ## Usage
`const Config = require('@br/config')` `const Config = require('@plastdev/config')`
`let config = new Config()` `let config = new Config()`
Then config is your config object. (Use it like config.setting) Then config is your config object. (Use it like config.setting)
......
/* TODO:
* - overwrite
* - env overwrite
*/
const fs = require('fs').promises const fs = require('fs').promises
const Config = require('./index') const Config = require('./index')
......
{ {
"name": "@br/config", "name": "@plastdev/config",
"version": "1.4.0", "version": "1.4.0",
"description": "Simple Config Log with HashiCorp Vault support", "description": "Simple Config with ENV Support",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "jest", "test": "jest",
"test:mutation": "stryker run", "test:mutation": "stryker run"
"sonarqube": "sonar-scanner -Dsonar.projectKey=config -Dsonar.sources=. -Dsonar.host.url=https://it-devops-01.br-edv.brnet.int:8999 -Dsonar.login=gitlab"
}, },
"keywords": [ "keywords": [
"config", "config",
"env" "env"
], ],
"author": "Dominik Sigmund", "author": "Dominik Sigmund <dominik.sigmund@br.de>",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"lodash.merge": "^4.6.2" "lodash.merge": "^4.6.2"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment