@iexec/iapp
Version:
A CLI to guide you through the process of building an iExec iApp
12 lines • 413 B
JavaScript
import chalk from 'chalk';
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