@app-config/main

Easy to use configuration loader with schema validation

Usage no npm install needed!

<script type="module">
  import appConfigMain from 'https://cdn.skypack.dev/@app-config/main';
</script>

README

App Config

Easy Configuration Loader with Strict Validation


Features

  • Schema Validation: Avoid production typos. Write JSON Schema for your configuration, and we'll have your back.
  • Strong Typing: Use it with TypeScript without separate validation. Types are generated based on JSON Schema constraints.
  • Powerful and Robust: Flexible parsing extensions and file loading strategies. Provides file merging, environment specific values (eg. production vs development) and more.
  • First Class Encryption: Manage your secrets in version control, backed by OpenPGP (optional). Or, keep secrets away from committed files with schema validation.
  • Use Your Tools: Don't be constrained by your tools - export environment variables for usage anywhere.
  • Multi-Format: Write YAML, TOML, JSON, JSON5 - whatever makes most sense for you.

Using App Config

Read the Introduction or Quick Start guides on our website.

Or, start by installing through your package manager:

yarn add @app-config/main@2

Or, using NPM.

npm i @app-config/main@2