Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dimkl/config

Create configuration class from env or other resources
https://github.com/dimkl/config

Last synced: 9 days ago
JSON representation

Create configuration class from env or other resources

Awesome Lists containing this project

README

        

# Config

`@dimkl/condig` is a **dependency-free** JS library for initialization a configuration instance or class.

## Installation

Use the package manager [npm](https://nodejs.org/en/download/) to install `@dimkl/config`

```bash
npm install @dimkl/config
```

## Requirements & limitations

- node >= 18.17
- typescript decorators support enabled in tsconfig using `"experimentalDecorators": true`

## Usage

Examples can be found in `examples/` folder.

## Testing

[![codecov](https://codecov.io/gh/dimkl/config/branch/main/graph/badge.svg?token=VHYWTFBNHB)](https://codecov.io/gh/dimkl/config)

### Run tests

```
npm test
```

## Support
For feature request or issues contact me via [email](mailto:[email protected]) or open an issue in repo

## Publish

```
npm version {patch|minor|major}
npm publish
```

## Roadmap

TODO

## Contributing

Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT](https://choosealicense.com/licenses/mit/)