# Cleanser

[![Build Status](](

A validation library for emails (and more soon!)

## Installation

The package can be installed
by adding `cleanser` to your list of dependencies in `mix.exs`:

def deps do
    {:cleanser, "~> 0.1.0"}

## Basic Usage

There are two functions that currently exist within Cleanser (with more to come specifically to work with Phoenix's changesets).

# Validate email against default invalid domains

# Validate email against custom invalid domains as well as defaults

# Validate domain against default invalid domains

# Validate domain against custom invalid domains as well as defaults

These functions will return a simple `:ok` or `{:error, "<error_message>"}` if the email/domain is valid or invalid. If there are any errors with types, standard errors will be thrown, though some guards in there to prevent as many issues as possible.

Documentation can
be found at [](

If you have any problems with the package or have any feature requests, please create a [GitHub issue]( and I'll make sure to check it out!

## Developement

I will be streaming the creation of this library on Twitch!

Feel free to [follow me]( on there to watch the development and have the opportunity to give feedback in real-time.