@url-sanitize/cli
v2.0.2
Published
Command-line tool to remove tracking parameters and unwrap tracking redirects from URLs.
Downloads
1,350
Maintainers
Readme
@url-sanitize/cli
Command-line tool for removing tracking parameters and unwrapping tracking redirects from URLs with the merged multi-source catalog.
The default catalog combines ClearURLs, AdGuard URL Tracking Protection, Brave Debouncer, and Firefox Query Stripping rules.
Install
npm install -g @url-sanitize/cli
# or
npx @url-sanitize/cli "https://example.com/?utm_source=x"Usage
url-sanitize "https://example.com/?utm_source=x"
# https://example.com/
url-sanitize --json "https://example.com/?utm_source=x"
# {"kind":"cleaned","original":"...","url":"...","strippedParams":["utm_source"],"matchedRules":[...]}
printf '%s\n' "https://example.com/?utm_source=x" | url-sanitize -
# https://example.com/The npm CLI is pure TypeScript so it installs without native package setup. For
the smallest standalone binary, use cargo install url-sanitize or the GitHub
Release installer from the root README. For OS-specific native install commands,
see the root README.
License
MIT.
