get-environment-suffix

A function that gets the environment at run time, and transforms that environment to match iQmetrix conventions for service endpoints. EG.: "int", "rc", ""

Installation#

npm install @iqmetrix/get-environment-suffix

Interface#

type EnvironmentSuffix = "" | "int" | "rc";
const getEnvironmentSuffix: () => Promise<EnvironmentSuffix>

Example#

import getEnvironmentSuffix from '@iqmetrix/get-environment-suffix';
const env = await getEnvironmentSuffix();

See tests for more examples.

Sources#

Last updated on by Olga Tkatska