I want to check whether an index exists or not in node. I have the curl script to check it but i want to know how to check it through node.
Curl Script: curl -I
curl -I