JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 699
  • Score
    100M100P100Q86960F
  • License Apache

Config loader for DigiFi Applications

Package Exports

  • @digifi/app-config-loader
  • @digifi/app-config-loader/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@digifi/app-config-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

App Config Loader 5

This package helps you to encapsulate code related to retrieving environment variables.

This package takes values either from Azure/AWS/process.env.


BRAKING CHANGES (migrating from v4)

  1. Now you need to parse .env files on your own. You can use dotenv package for this.

  2. Default import returns SecretService, instead of new SecretService, you should create an instance manually.

  3. there are no required environment variables anymore like (AzureKeyVaultName, AwsSecretsManagerSecretId, AwsRegion), you should pass configs to SecretService constructor.