Skip to content

About

Unroll URLs and remove their tracking parameters

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CleanUnroll

Hex.pm Version Hex Docs Hex.pm License

Unroll URLs and remove their tracking parameters

Installation

This package can be installed by adding clean_unroll to your list of dependencies in mix.exs:

def deps do
  [
    {:clean_unroll, "~> 0.1"}
  ]
end

Examples

iex> CleanUnroll.clean_unroll("https://t.co/shortened-tracked")
{:ok, "https://example.com/page?custom_param=value"}

iex> CleanUnroll.clean_unroll("https://t.co/shortened-tracked", ["custom_param"])
{:ok, "https://example.com/page"}

iex> CleanUnroll.clean("https://example.com/page?utm_source=twitter&id=123")
"https://example.com/page?id=123"

iex> CleanUnroll.unroll("https://t.co/shortened")
{:ok, "https://example.com/page"}

License

CleanUnroll is released under the Apache License 2.0.

About

This package was written by Elliot Jackson.

About

Unroll URLs and remove their tracking parameters

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages