url-rinse
v2.1.0
Published
Cleans URLs for sharing
Downloads
33
Maintainers
Readme
url-rinse
Cleans up URLs
// install
npm i url-rinse
// use
const rinse = require('url-rinse')
Functions
await unshorten(url)
- unshorten with node httpsawait swUnshorten(url)
- unshorten with window.fetch (Service Workers)removeParam(url)
- removes all query parametersdefer(url)
- remove referer with https://anonym.todeAmp(url)
- return original non-AMP link (fetch/sw only)amazon(url)
- shorten amazon urlreddit(url)
- shortens reddit url