# easyconfig-ts

> Simple configuration setup utility for TypeScript and JavaScript. Depends on dotenv

Latest version **1.2.3** (published 2022-06-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install easyconfig-ts
pnpm add easyconfig-ts
yarn add easyconfig-ts
bun add easyconfig-ts
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2022-06-17 |
| First published | 2022-06-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 22.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Adam Brewer |
| Maintainers | brewera |
| Keywords | typescript, javascript, configuration, dotenv, easyconfig, easyconfig-js, easyconfig-ts |

## Links

- npm: https://www.npmjs.com/package/easyconfig-ts
- Repository: https://github.com/adamhb123/EasyConfig-TS
- Homepage: https://github.com/adamhb123/EasyConfig-TS#readme
- Issues: https://github.com/adamhb123/EasyConfig-TS/issues
- npm.io page: https://npm.io/package/easyconfig-ts

## Dependencies (1)

- [dotenv](https://npm.io/package/dotenv.md) ^16.0.1

## 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.2.3 (latest) — 2022-06-17
- 1.2.2 — 2022-06-17
- 1.2.1 — 2022-06-17
- 1.1.1 — 2022-06-16
- 1.1.0 — 2022-06-16
- 1.0.0 — 2022-06-15

## README

# EasyConfig-TS

Simple configuration helper for applications in TypeScript and Javascript.

Adds dot file fallback functionality for dotenv.

## Installation

```
npm install easyconfig-ts --save-dev
```

## Usage

Very simple:

```
import EasyConfig from "easyconfig-ts";
// See (or import { EasyConfigOptions } from "easyconfig-ts") EasyConfigOptions in easyconfig.ts
EasyConfig({
    dotFiles: [
        "./first.env",
        "./second.env",
        ...
    ]
});
```

or

```
import EasyConfig from "easyconfig-ts";
EasyConfig([{
    path: "./first.env",
    priority: 1 // Highest priority value - so this will be assessed first
  }, {
    path: "./last.env",
    priority: 0 // Lowest priority value - so this will be assessed last
  },
 ...
 ]);
```

And that's it! The first found dot file provided to EasyConfig will be chosen and
will be used in a Dotenv.config call.

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