The former executive editor of the New York Times blasted the newspaper’s coverage of the president as “unmistakably anti-Trump.”

Jill Abramson, who was the top news executive at the Gray Lady from 2011 to 2014, writes in “Merchants of Truth” that the biased coverage of her successor Dean Baquet is hurting the newspaper’s credibility.

“Though Baquet said publicly he didn’t want the Times to be the opposition party, his news pages were unmistakably anti-Trump,” writes Abramson, who also faults the Washington Post for its reporting. “Some headlines contained raw opinion, as did some of the stories that were labeled as news analysis.”

She said the coverage of Trump conflicts with the principles espoused by former Times publisher Adolph Ochs in 1896 to report the news impartially “without fear or favor.”

“The more anti-Trump the Times was perceived to be, the more it was mistrusted for being biased. Ochs’s vow to cover the news without fear or favor sounded like an impossible promise in such a polarized environment,” Abramson writes in the book.

FOX News Channel’s Howard Kurtz first reported on the book Wednesday.

Younger staffers at the newspaper — including many working on the digital end — encourage a tougher take on Trump that has “obviated the old standards,” she said.

The Times, Abramson said, has reason to be critical of Trump, considering they got a “Trump bump” during the first six months of the administration that saw digital subscriptions increase by 600,000 to more than 2 million.

“Given its mostly liberal audience, there was an implicit financial reward for the Times in running lots of Trump stories, almost all of them negative: they drove big traffic numbers and, despite the blip of cancellations after the election, inflated subscription orders to levels no one anticipated,” Abramson writes.

Baquet has defended the Times’ coverage of Trump, saying that people in power must be held accountable.

“Our job is to be very aggressive covering whoever is in the White House. … We asked tough questions to Barack Obama when he dramatically expanded his drone program and killed several civilians in the process. Maybe, we did not ask so much when the White House of George W. Bush decided to go to war in Iraq,” said Baquet in an interview last September.

“Every political administration complains about the scrutiny and coverage it receives from the free press. But our job is to seek the truth and hold power to account, regardless of who occupies the Oval Office,” Times spokeswoman Eileen Murphy said in a statement. “That is what we have done during the Trump administration, just as we did in the Obama, Bush and Clinton administrations. We take pride in our long history of journalistic independence and commitment to covering the news without fear or favor.”

Abramson’s book will be published on Feb. 5.