# twelve-config

> An easy to use 12factor configuration for Node.js

Latest version **1.1.1** (published 2016-08-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install twelve-config
pnpm add twelve-config
yarn add twelve-config
bun add twelve-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.1.1 |
| Published | 2016-08-25 |
| First published | 2016-08-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.2.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Ivan Koptiev |
| Maintainers | kop |
| Keywords | 12factor, config, configuration, env, environment |

## Links

- npm: https://www.npmjs.com/package/twelve-config
- Repository: https://github.com/kop/node-twelve-config
- Issues: https://github.com/kop/node-twelve-config/issues
- npm.io page: https://npm.io/package/twelve-config

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 1.1.1 (latest) — 2016-08-25
- 1.1.0 — 2016-08-25
- 1.0.0 — 2016-08-24

## README

Twelve Config
=============

[![Dependency Status](https://gemnasium.com/badges/github.com/kop/node-twelve-config.svg)](https://gemnasium.com/github.com/kop/node-twelve-config)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/kop/node-twelve-config/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/kop/node-twelve-config/?branch=master)

An easy to use 12factor configuration for Node.js.


Configuration and usage
-----------------------

```js
const config = new TwelveConfig({prefix: "MY_APP_"});
config.val('ENV_VAR_NAME', 'default value');
config.string('ENV_VAR_NAME', 'default value'); // works same as previous
config.number('ENV_VAR_NAME', 100);
config.boolean('ENV_VAR_NAME', true);
config.range('ENV_VAR_NAME', 'default value', ['default value', 'another value']);
```

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