url-rinse

2.1.0 • Public • Published

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

/url-rinse/

    Package Sidebar

    Install

    npm i url-rinse

    Weekly Downloads

    8

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    2.64 kB

    Total Files

    3

    Last publish

    Collaborators

    • mchangrh