# srv-config

> Configuration functionality for server blueprint

Latest version **1.0.0** (published 2017-05-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install srv-config
pnpm add srv-config
yarn add srv-config
bun add srv-config
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-05-17 |
| First published | 2017-04-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Aleksandras Novikovas |
| Maintainers | alius |

## Links

- npm: https://www.npmjs.com/package/srv-config
- Repository: https://github.com/Aleksandras-Novikovas/srv-config
- Homepage: https://github.com/Aleksandras-Novikovas/srv-config#readme
- Issues: https://github.com/Aleksandras-Novikovas/srv-config/issues
- npm.io page: https://npm.io/package/srv-config

## Dependencies (3)

- [srv-core](https://npm.io/package/srv-core.md) ^1.0.0
- [srv-util](https://npm.io/package/srv-util.md) ^1.0.0
- [properties](https://npm.io/package/properties.md) ^1.2.1

## Recent versions

- 1.0.0 (latest) — 2017-05-17
- 0.0.2 — 2017-05-14
- 0.0.1 — 2017-04-29

## README

# srv-config
## Configuration functionality for server blueprint

Reads configuration from file. File location can be specified in environment variable `CONF_DIR` (defaults to `process.cwd()`). File name can be specified in environment variable `CONF_FILE` (defaults to `config.properties`).

- Class `Config`
    - `globalConfig` global configuration object (shallow copy)
    - `confDir` directory for configuration files
    - `initGlobalConfig()` reads configuration file and initializes global configuration
    - `getValue()` retrieves value from default configuration via specified string path

---
_Source: https://npm.io/package/srv-config · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
