JS Utils Kit
    Preparing search index...

    Variable EnvironmentConst

    Environment: {
        DEV: "development";
        PROD: "production";
        TEST: "test";
        UNKNOWN: "unknown";
    }

    Represents the standard runtime environments used in application development.

    This enum is typically used with process.env.NODE_ENV to determine whether the app is running in development, production, or test mode.

    Type Declaration

    • ReadonlyDEV: "development"

      Development environment ("development")

    • ReadonlyPROD: "production"

      Production environment ("production")

    • ReadonlyTEST: "test"

      Testing environment ("test")

    • ReadonlyUNKNOWN: "unknown"

      Unknown or undefined environment

    if (process.env.NODE_ENV === Environment.DEV) {
    console.log('Running in development mode');
    }