0.1.1 • Published 5 years ago

@mtti/configs v0.1.1

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
5 years ago

Simple TypeScript application configuration manager. Not intended to be a fully featured, extensively configurable parser but a lightweight solution for situations that just require mapping string keys to string values.

  • Keys are always strings. Each value can be aliased to multiple keys.
  • Option values can be strings or arrays of strings.
  • Separate key map for setting values from environment variables.

Usage example

import { Configs } from '@mtti/configs';

const configs = new Configs();

configs.define('redisUrl')
  .default('redis://localhost:6379/0')
  .env('REDIS_URL');