trace where redirects end up.
npm install trace-redirect
tracer(url)
Promise object. includes url that resolved.
const tracer = require('trace-redirect').default;
const result = await tracer("https://goo.gl/0PcY3k");
console.log(result);
/*
'https://github.com/prezzemolo/trace-redirect'
*/
import tracer from 'trace-redirect';
const result = await tracer("https://goo.gl/0PcY3k");
console.log(result);
/*
'https://github.com/prezzemolo/trace-redirect'
*/
The MIT License. See LICENSE.