Get the urls redirected to when loading a url.
npm install get-redirects
const getRedirects = require("get-redirects");
(async () => {
await getRedirects("https://google.com")
//=> ['https://www.google.com/']
await getRedirects("http://richienb.github.io")
//=> ['http://www.richie-bendall.ml/', 'https://www.richie-bendall.ml/']
})()
Type: string
The URL to check.