url-rinse

Cleans URLs for sharing


Keywords
url-clean, url, url-rinse, unshorten, dereferer, follow-redirects, un-amp, amazon, amp, clean, clean-redirect, clean-url, dereferrer, reddit, redirects, url-cleaning
License
MIT
Install
npm install url-rinse@2.1.0

Documentation

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