Skip to content

Catching redirect url from headers without following it

License

Notifications You must be signed in to change notification settings

starak/catch-redirect-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

catch-redirect-url

Catching redirect url from headers without following it

Usage

var cru = require( 'catch-redirect-url' )
cru( "https://youtu.be/2Tvy_Pbe5NA", function ( url ) {
    console.log( url );
    // -> https://www.youtube.com/watch?v=2Tvy_Pbe5NA&feature=youtu.be
}

About

Catching redirect url from headers without following it

Resources

License

Stars

Watchers

Forks

Packages

No packages published