Skip to content

elliotekj/clean_unroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages