# srob-config

> Configuration loader

Latest version **1.0.4** (published 2015-10-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install srob-config
pnpm add srob-config
yarn add srob-config
bun add srob-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.4 |
| Published | 2015-10-30 |
| First published | 2015-10-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Simon Robert |
| Maintainers | srobfr |

## Links

- npm: https://www.npmjs.com/package/srob-config
- npm.io page: https://npm.io/package/srob-config

## Dependencies (5)

- [q](https://npm.io/package/q.md) ^1.4.1
- [extend](https://npm.io/package/extend.md) ^3.0.0
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.4.3
- [traverse](https://npm.io/package/traverse.md) ^0.6.6
- [underscore](https://npm.io/package/underscore.md) ^1.8.3

## Recent versions

- 1.0.4 (latest) — 2015-10-30
- 1.0.3 — 2015-10-30
- 1.0.2 — 2015-10-30
- 1.0.1 — 2015-10-30
- 1.0.0 — 2015-10-30

## README

# srob-config
Configuration loader

## Installation

    npm install srob-config

## Usage

    var configLoad = require('srob-config');

    configLoad.load([
            // Files list.
            __dirname + "/path/to/foo.js", // JS file imported using a require().
            "bar.yml", // Yaml file
            { // Plain old config object
                foo: "Bar",
                plop: "Hello, world !", // Will be "Hello, WORLD !" in the result due to a string replacement (see below).
            }
        ], 
        [
            // Load-time strings replacement list.
            // Every occurrence of the first string will be replaced in the config leaf strings
            ["{dirname}", __dirname],
            ["{Foo}", "bar"],
            ["world", "WORLD"],
        ])
        .done(function(config) {
            // Here your full config object is ready.
        });

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