# 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.2.0"}

## Basic Usage

There are four functions that currently exist within Cleanser.

# Validate an email against built in default domains

# Validate an email against custom invalid domains as well as defaults

# Validate a domain against default invalid domains

# Validate a domain against custom invalid domains as well as defaults

# Validate a credit card number using the [Luhn algorithm](

# Validate a string does not contain bad words from a given language's default bad words

These functions will return a simple `:ok` or `{:error, "<error_message>"}`, if the email/domain/credit card 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.