Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.
/ Unalix-nim Public archive

Small, dependency-free, fast Nim package and CLI tool for removing tracking fields from URLs.

License

Notifications You must be signed in to change notification settings

AmanoTeam/Unalix-nim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unalix

Unalix is a library and CLI tool written in Nim, it implements the specification used by the ClearURLs addon for removing tracking fields from URLs.

Installation

Install using nimble:

nimble install --accept 'unalix'

Note: Unalix requires Nim 1.4.0 or higher.

Usage:

Removing tracking fields:

import unalix

const url: string = "https://deezer.com/track/891177062?utm_source=deezer"
let result: string = clearUrl(url = url)

assert result == "https://deezer.com/track/891177062"

Resolving shortened URL:

import unalix

const url: string = "https://bitly.is/#-Pop-Up"
let result: string = unshortUrl(url = url)

assert result == "https://bitly.com/pages/#"

Tip: The unshortUrl() proc will strip tracking fields from any URL before following a redirect, so you don't need to manually call clearUrl() for it's return value.

Downloads

You can get prebuilt static executables of the CLI tool for Linux and Android here.

Contributing

If you have discovered a bug in this library and know how to fix it, fork this repository and open a Pull Request.

Third party software

Unalix includes some third party software in its codebase. See them below:

About

Small, dependency-free, fast Nim package and CLI tool for removing tracking fields from URLs.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published