Mayor de Blasio has just six days to decide whether to keep a Brooklyn judge who let two men charged with anti-cop crimes walk free without bail — as outrage mounted Thursday over her controversial rulings.

In a statement, de Blasio said that while Judge Laura Johnson’s decisions were “in compliance with the letter of the state’s laws on bail . . . judges must take into account all of the circumstances that contribute to the risk of flight, and that certainly includes the seriousness of the offense.”

Johnson’s term on the bench will expire Wednesday, and City Hall has said the mayor was “considering” whether to keep her there.

The Post has exclusively revealed how Johnson freed a gang member who admitted posting an online threat against the NYPD, then the judge doubled down by springing a man charged with punching a cop — despite having been admonished by a court boss over the first ruling.

“A disgraceful, irresponsible and reprehensible decision,” City Councilman Chaim Deutsch (D-Brooklyn) tweeted Thursday in response to The Post’s latest exposé.