UNPKG

@iexec/iapp

Version:

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

14 lines (11 loc) 365 B
import chalk from 'chalk'; export const useExperimentalNetworks = checkFlag('EXPERIMENTAL_NETWORKS'); function checkFlag(envName: string) { 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; }