NormalizeUrl

The base module of NormalizeUrl.

It exposes a single function, normalize_url.

Summary

Functions

Normalizes a url. This is useful for displaying, storing, comparing, etc

Functions

normalize_url(url, options \\ [])

Normalizes a url. This is useful for displaying, storing, comparing, etc.

Args:

  • url - the url to normalize, string

Options:

  • strip_www - strip the www from the url, boolean
  • strip_fragment - strip the fragment from the url, boolean
  • normalize_protocol - prepend http: if the url is protocol relative, boolean

Returns a url as a string.