# @iteam/config

> [![](https://github.com/Iteam1337/config/workflows/Release/badge.svg)](https://github.com/Iteam1337/config/actions?workflow=Release) [![npm version](https://badge.fury.io/js/%40iteam%2Fconfig.svg)](https://badge.fury.io/js/%40iteam%2Fconfig)

Latest version **12.1.2** (published 2021-02-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install @iteam/config
pnpm add @iteam/config
yarn add @iteam/config
bun add @iteam/config
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 12.1.2 |
| Published | 2021-02-18 |
| First published | 2019-06-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 18.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dennis Pettersson |
| Maintainers | johanobrink, iteamadmin, raduachim, jimjardland, believer, lessp, ankjevel |

## Links

- npm: https://www.npmjs.com/package/@iteam/config
- Repository: https://github.com/Iteam1337/config
- Homepage: https://github.com/Iteam1337/config#readme
- Issues: https://github.com/Iteam1337/config/issues
- npm.io page: https://npm.io/package/@iteam/config

## Dependencies (4)

- [dot-prop](https://npm.io/package/dot-prop.md) 5.1.1
- [camelcase](https://npm.io/package/camelcase.md) 5.3.1
- [is-docker](https://npm.io/package/is-docker.md) 2.0.0
- [constant-case](https://npm.io/package/constant-case.md) 2.0.0

## Recent versions

- 12.1.2 (latest) — 2021-02-18
- 12.2.0-beta.0 (beta) — 2026-05-21
- 12.1.1 — 2020-04-20
- 12.1.0 — 2019-07-22
- 12.0.1 — 2019-06-29
- 12.0.0 — 2019-06-29
- 10.0.1 — 2019-06-27
- 10.0.0 — 2019-06-27

## README

# Config

[![](https://github.com/Iteam1337/config/workflows/Release/badge.svg)](https://github.com/Iteam1337/config/actions?workflow=Release)
[![npm version](https://badge.fury.io/js/%40iteam%2Fconfig.svg)](https://badge.fury.io/js/%40iteam%2Fconfig)

This is useful when environment variables need to be nested and still be camel cased.


## Documentation
Full documentation is found at [Iteam Config](https://iteam1337.github.io/#/config/examples)

## Installation
```
npm install @iteam/config
```

or use [`supreme`](https://github.com/Iteam1337/supreme) to install and set up config files automatically:

```
npx @iteam/supreme add config
```

## Simple usage

```javascript
const config = require('@iteam/config')({
  file: `${__dirname}/../config.json`,
  defaults: {
    foo: {
      bar: 'baz',
    },
    baz: [1, 2, 3],
  },
})

config.get('foo') // { bar: 'baz' }
config.get('foo:bar') // 'baz'
config.get('baz') // [ 1, 2, 3 ]
```

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