Pakistan is now wide awake where the Islamic State is concerned.

Two weeks ago, The Post reported that “Pakistan isn’t losing any sleep over ISIS,” featuring a photograph of the terror group’s leader, Abu Bakr al-Baghdadi, dressed all in black, before a microphone.

Days later, in a speech before the Security Council, Pakistan’s Ambassador to the United Nations struck a much different tone, demanding that the international community exterminate ISIS.

“We must all, collectively, oppose and defeat its evil ideology of ‘hate, murder and destroy’. We must remain united in our fight against this new face of terrorism and violent extremism,” Masood Khan said in his Oct. 21 speech.

Kahn also insisted that the UN “use all diplomatic means at their disposal to prevent further deterioration.”

He then chastised the international community for not acting quick enough against this “rising tide of primeval barbarism and criminality.”

“It is now clear that if the Syrian conflict had been addressed two years ago, we would not have witnessed the rise of ISIS,” Kahn said, adding, “We should hold fast to this lesson we have learned in or contemporary history.”

On Oct. 17, The Post revealed that Pakistani officials were cooler than cucumbers after the bloodthirsty Pakistan Taliban announced that it was merging with ISIS to wreak havoc across the country.

One Pakistani official said at the time, “It shows a desperate attempt by a decimated [Pakistan Taliban] to find external support for survival. They are a weak and broken group because of the successful operations of the Pakistani forces.”

Six prominent members of the Pakistan Taliban had turned their allegiance away from Afghan Taliban spiritual leader Mullah Omar to al-Baghdadi.

“I pledge allegiance to the Caliph of Muslims, Abu Bakr al-Baghdadi,” Pakistan Taliban spokesman, Shahidullah Shahid, said. “I will listen to and obey his every order, even if the situation is difficult, whether I like the order or not.”

Five regional commanders also declared their unbridled support for al-Baghdadi, who, in June, declared himself the Caliph of the Muslim world and ordered all Muslims pledge their allegiance to him.

The proposed merger of the two terror groups was seen as a serious threat to the security of Pakistan, which has nuclear weapons.