# @mu-ts/configurations

> Convenience around configurations.

Latest version **3.0.7** (published 2023-10-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install @mu-ts/configurations
pnpm add @mu-ts/configurations
yarn add @mu-ts/configurations
bun add @mu-ts/configurations
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.7 |
| Published | 2023-10-21 |
| First published | 2019-03-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 62.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | matt.filion@gmail.com |
| Maintainers | matt-filion, strandedmusician, jeff-authvia |
| Keywords | AWS, Secrets Manager, Configuration |

## Links

- npm: https://www.npmjs.com/package/@mu-ts/configurations
- Repository: https://github.com/mu-ts/configurations
- Homepage: https://github.com/mu-ts/configurations#readme
- Issues: https://github.com/mu-ts/configurations/issues
- npm.io page: https://npm.io/package/@mu-ts/configurations

## Dependencies (1)

- [@mu-ts/logger](https://npm.io/package/@mu-ts/logger.md) ^3.2.0

## 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

- 3.0.7 (latest) — 2023-10-21
- 3.0.6 — 2023-10-21
- 3.0.5 — 2023-04-04
- 3.0.4 — 2023-04-04
- 3.0.3 — 2023-04-04
- 3.0.2 — 2023-03-29
- 3.0.1 — 2023-03-29
- 3.0.0 — 2023-03-28
- 2.3.0 — 2022-06-09
- 2.2.4 — 2021-02-03
- 2.2.3 — 2021-01-21
- 2.2.1 — 2021-01-20
- 2.2.0 — 2021-01-07
- 2.1.4 — 2020-08-11
- 2.1.3 — 2020-08-10
- … 17 more at https://npm.io/package/@mu-ts/configurations/versions

## README

# Summary

Convenience around configurations.

## Usage

### Declare Sources

To return more than just your defaults, you will need to define the sources you want considered during a value lookup. The order or declaration, will determine the order they are queried in.

This example prioritizes secrets manager above all, then environment variables then a hard coded set of default values.

```
Configurations.store
  .secretManager('store-name', process.env.AWS_REGION)
  .environment()
  .defaults({"foo":"bar"})
```

### Use Values

To get raw values, you can use a simple get operation.

```
const myConfig: any = await Configurations.get('a-value');
```

To cast as the values are returned.

```
const myConfig: string = await Configurations.as.string('a-value');
```

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