# cliche-config

> JSON/YAML configuration files loader

Latest version **3.0.0** (published 2016-05-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install cliche-config
pnpm add cliche-config
yarn add cliche-config
bun add cliche-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 | 3.0.0 |
| Published | 2016-05-03 |
| First published | 2016-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=5 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Konstantin Tsabolov |
| Maintainers | tsabolov |

## Links

- npm: https://www.npmjs.com/package/cliche-config
- Repository: https://gitlab.com/cliche.js/cliche-config
- Homepage: https://gitlab.com/cliche.js/cliche-config#README
- Issues: https://gitlab.com/cliche.js/cliche-config/issues
- npm.io page: https://npm.io/package/cliche-config

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.11.1
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.6.0

## Recent versions

- 3.0.0 (latest) — 2016-05-03
- 2.0.0 — 2016-02-25
- 1.0.0 — 2016-02-23

## README

JSON/YAML configs loader.

```js
const Config = require('cliche-config');
const config = new Config();
const config2 = new Config();

config.add({ property: 'value' });
config.add('config.js');
config.add('config.json');
config.add('config.yaml');
config.add('another_config');
config.add(config2);

config.get('option');
config.get('nested.option');
```

## Installation

```bash
$ npm install --save cliche-config
```

## Features

  * JS module as configs (module must return a plain object)
  * JSON configs support
  * YAML configs support (`js-yaml` is used to load)
  * Config override - latter loaded file will have precedence upon key search

## Notes

When add source as a filename without extension we'll try to load first `.js`, then `.json` and then `.yaml` (in that order).

## Examples

  * TODO

## License

  [MIT](LICENSE)

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