President Trump blasted former FBI Director James Comey as a “LEAKER & LIAR” and a “slime ball” on Friday after explosive excerpts emerged from his memoir — and said Comey should be prosecuted for allegedly leaking classified material.

“James Comey is a proven LEAKER & LIAR. Virtually everyone in Washington thought he should be fired for the terrible job he did-until he was, in fact, fired,” Trump tweeted.

“He leaked CLASSIFIED information, for which he should be prosecuted. He lied to Congress under OATH. He is a weak and untruthful slime ball who was, as time has proven, a terrible Director of the FBI,” he continued.

“His handling of the Crooked Hillary Clinton case, and the events surrounding it, will go down as one of the worst ‘botch jobs’ of history. It was my great honor to fire James Comey!”

Trump unleashed his tweetstorm after excerpts of an interview Comey gave to ABC News aired Friday morning on “Good Morning America.”

The former top G-man told “20/20” that “it’s possible” the president was with hookers “peeing on each other” in Moscow.

Trump’s latest tirade against Comey also comes after salacious details from his new tell-all, “A Higher Loyalty: Truth, Lies and Leadership,” were revealed by various news outlets, including The Post, which obtained an advance copy.

In the memoir, which is due to hit the bookshelves Tuesday, Comey said the president reminded him of a Mafia boss who demanded absolute loyalty, saw the entire world against him and lied about everything.

Comey said Trump also was obsessed with the alleged existence of a video in which Russian prostitutes said to have been hired by the president peed on the bed in a Moscow hotel room.

Comey, whom Trump fired in May 2017, said the president has no sense of what is right and wrong.

“This president is unethical, and untethered to truth and institutional values,” he wrote, according to excerpts. “His leadership is transactional, ego-driven and about personal loyalty.”

Trump lives in “a cocoon of alternative reality” that he tried to pull others around him into, Comey added, according to the Washington Post.

Comey said he warned the president against ordering a probe into allegations in an intelligence dossier about a trip Trump took to Moscow in 2013, according to the “20/20” interview.

“I said to him, ‘Sir that’s up to you but you want to be careful about that because it might create a narrative that we’re investigating you personally and, second, it’s very difficult to prove something didn’t happen,'” Comey said.

Comey described the new commander-in-chief as volatile, defensive and concerned more about his own image than about Russian meddling in the 2016 election.

In his book, Comey wrote that Trump raised the dossier with him at least four times during meetings. The dossier was compiled by ex-British intelligence officer Christopher Steele about Trump’s ties to Russia.

With Post wires