UNPKG

@pallad/app-env

Version:

Detects environment (production, staging, test, development, ci) and helps making decision based on that

10 lines (9 loc) 236 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isCI = isCI; function isCI(env) { return !!env.CI || !!env.CONTINUOUS_INTEGRATION || !!env.BUILD_NUMBER || !!env.RUN_ID; }