Nifty Purring Manticore

    trace-redirect
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.6 • Public • Published

    trace-redirect

    trace where redirects end up.

    Installation

    npm install trace-redirect
    

    Usage

    tracer(url)
    

    Return

    Promise object. includes url that resolved.

    Examples

    Node.js

    const tracer = require('trace-redirect').default;
    const result = await tracer("https://goo.gl/0PcY3k");
    console.log(result);
     
    /* 
    'https://github.com/prezzemolo/trace-redirect'
    */

    TypeScript

    import tracer from 'trace-redirect';
    const result = await tracer("https://goo.gl/0PcY3k");
    console.log(result);
     
    /* 
    'https://github.com/prezzemolo/trace-redirect'
    */

    License

    The MIT License. See LICENSE.

    Keywords

    none

    Install

    npm i trace-redirect

    DownloadsWeekly Downloads

    2,822

    Version

    1.0.6

    License

    MIT

    Last publish

    Collaborators

    • otofune