Skip to content

mchangrh/url-rinse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-rinse

tests build size

Cleans up URLs

// install
npm i url-rinse
// use
const rinse = require('url-rinse')

Functions

  • await unshorten(url) - unshorten with node https
  • await swUnshorten(url) - unshorten with window.fetch (Service Workers)
  • removeParam(url) - removes all query parameters
  • defer(url) - remove referer with https://anonym.to
  • deAmp(url) - return original non-AMP link (fetch/sw only)
  • amazon(url) - shorten amazon url
  • reddit(url) - shortens reddit url