JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 315
  • Score
    100M100P100Q93029F
  • License MIT

Set Env var in Capacitor config and read them at runtime

Package Exports

  • @capgo/capacitor-env
  • @capgo/capacitor-env/dist/esm/index.js
  • @capgo/capacitor-env/dist/plugin.cjs.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 (@capgo/capacitor-env) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@capgo/capacitor-env

Capgo - Instant updates for capacitor

Set Env var in Capacitor config and read them at runtime, This plugin is helpfull for multitenant app or white label, when you want to keep the same code but some config have to differ.

Install

npm install @capgo/capacitor-env
npx cap sync

API

getKey(...)

getKey(options: { key: string; }) => Promise<{ value: string; }>
Param Type
options { key: string; }

Returns: Promise<{ value: string; }>