
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
@tickhq/clean-url
Advanced tools
This library strips unwanted tracking and clutter from URLs, making them simpler, tidier, and easier to read.
pnpm add @tickhq/clean-url
import { clean, validateURL, Cleaner } from "@tickhq/clean-url";
// One-off clean (uses default rules)
const result = clean(
"https://open.spotify.com/track/1hhZQVLXpg10ySFQFxGbih?si=-k8RwDQwTCK923jxZuy07w&utm_source=copy-link",
);
console.log(result.url);
// https://open.spotify.com/track/1hhZQVLXpg10ySFQFxGbih
// Validate a URL
validateURL("https://example.com"); // true
validateURL("not a url"); // false
// Custom config
const cleaner = new Cleaner({
config: { allowAMP: false, allowRedirects: true },
});
const { url, info } = cleaner.clean("https://...");
console.log(info.removed); // params that were stripped
Cleaner(options?) – options.rules, options.handlers, options.config (partial) to override defaults.cleaner.config – allowAMP, allowCustomHandlers, allowRedirects. Use config.setMany({ ... }) to set multiple.pnpm run build
pnpm test # run after build
FAQs
Strip tracking and clutter from URLs.
The npm package @tickhq/clean-url receives a total of 27 weekly downloads. As such, @tickhq/clean-url popularity was classified as not popular.
We found that @tickhq/clean-url demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.