This should work:
    
    #if nodejs untyped __js__("process.env.CLICOLOR") #else Sys.getEnv("CLICOLOR") #end == "1";