# tiny-conf

> Node.js configuration with files, environment variables, command-line arguments, ... pluggable architecture in order to work in the browser & server-side

Latest version **1.1.0** (published 2017-07-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install tiny-conf
pnpm add tiny-conf
yarn add tiny-conf
bun add tiny-conf
```

## Health

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-07-28 |
| First published | 2016-08-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 1 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Maxime Tricoire |
| Maintainers | leiko |
| Keywords | conf, config, configuration, pluggable, tiny |

## Links

- npm: https://www.npmjs.com/package/tiny-conf
- Repository: https://github.com/tiny-conf/tiny-conf
- Issues: https://github.com/tiny-conf/tiny-conf/issues
- npm.io page: https://npm.io/package/tiny-conf

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2017-07-28
- 1.0.5 — 2017-03-27
- 1.0.4 — 2016-09-16
- 1.0.3 — 2016-09-15
- 1.0.2 — 2016-09-06
- 1.0.1 — 2016-09-06
- 1.0.0 — 2016-08-16

## README

# tiny-conf


```js
const conf = require('tiny-conf');
```

### API
**.get(path)**: {*}  
returns the `value` stored at that path or `undefined`  

**.set(path, value)**: {boolean}  
stores `value` at `path` location  
returns `true` on success, `false` otherwise

**.merge(path, value)**: {boolean}  
merges `value` at `path` location  
returns `true` on success, `false` otherwise

**.clear()**: undefined  
removes everything from the store

**.print()**: undefined  
outputs the current `store` content using `console.dir()`

### Acknowledgements
In-memory store type is from *indexzero*'s [`nconf`](https://github.com/indexzero/nconf/blob/master/lib/nconf/stores/memory.js) module.

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