Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mchangrh/url-rinse
Cleans up URLs for sharing
https://github.com/mchangrh/url-rinse
amazon amp clean clean-redirect clean-url dereferrer follow-redirects reddit redirects un-amp unshorten url url-cleaning url-rinse
Last synced: 30 days ago
JSON representation
Cleans up URLs for sharing
- Host: GitHub
- URL: https://github.com/mchangrh/url-rinse
- Owner: mchangrh
- Created: 2020-12-21T22:00:02.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-16T20:02:09.000Z (5 months ago)
- Last Synced: 2024-10-04T22:42:26.009Z (about 1 month ago)
- Topics: amazon, amp, clean, clean-redirect, clean-url, dereferrer, follow-redirects, reddit, redirects, un-amp, unshorten, url, url-cleaning, url-rinse
- Language: JavaScript
- Homepage:
- Size: 112 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# url-rinse
![tests](https://img.shields.io/github/workflow/status/mchangrh/url-rinse/unit-test?label=tests)
![build](https://img.shields.io/github/workflow/status/mchangrh/url-rinse/npm-publish)
[![size](https://packagephobia.com/badge?p=url-rinse)](https://packagephobia.com/result?p=url-rinse)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