UNPKG

@iexec/iapp

Version:

A CLI to guide you through the process of building an iExec iApp

14 lines 528 B
import chalk from 'chalk'; export const useWsApi = checkFlag('EXPERIMENTAL_WS_API'); export const useTdx = checkFlag('EXPERIMENTAL_TDX_APP'); export const useExperimentalNetworks = checkFlag('EXPERIMENTAL_NETWORKS'); function checkFlag(envName) { const env = process.env[envName]; const enabled = env === '1' || env === 'true'; if (enabled) { // eslint-disable-next-line no-console console.warn(chalk.yellow(`${envName} enabled`)); } return enabled; } //# sourceMappingURL=featureFlags.js.map