I was reading how to unshorten a url with request in this article https://loige.co/unshorten-expand-short-urls-with-node-js/ and I wanted to know if it can be done in axios.
My Attempt:
const geturl = async link => {
const res = await axios({
method: "get",
url: link,
maxRedirects: 1
});
console.log(res.headers.Location);
};
geturl("URL GOES HERE");
Far as I can see, Axios does not use headers location like request does...