Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johno/normalize_email
Elixir package to normalize emails
https://github.com/johno/normalize_email
Last synced: 2 months ago
JSON representation
Elixir package to normalize emails
- Host: GitHub
- URL: https://github.com/johno/normalize_email
- Owner: johno
- Created: 2015-11-06T20:00:59.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-06T22:49:27.000Z (about 9 years ago)
- Last Synced: 2024-04-14T07:47:54.717Z (10 months ago)
- Language: Elixir
- Homepage: http://hexdocs.pm/normalize_email/
- Size: 0 Bytes
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# normalize_email [![Build Status](https://secure.travis-ci.org/johnotander/normalize_email.png?branch=master)](https://travis-ci.org/johnotander/normalize_email)
Normalize emails for uniqueness validation. This will convert the email to lowercase, remove dots (`.`), and plus signs followed by arbitrary strings (`+foobar`).
## Installation
Add normalize_email to your list of dependencies in `mix.exs`
```elixir
def deps do
[{:normalize_email, "~> 0.0.1"}]
end
```Ensure normalize_email is started before your application
```elixir
def application do
[applications: [:normalize_email]]
end
```## Usage
```elixir
NormalizeEmail.normalize_email("[email protected]")
# => "[email protected]"NormalizeEmail.normalize_email("[email protected]")
# => "[email protected]"
```## Development
```
mix test
```## Related
* Elixir port from the [`normalize-email`](https://github.com/johnotander/normalize-email) node module.
## License
MIT
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull RequestCrafted with <3 by [John Otander](http://johnotander.com) ([@4lpine](https://twitter.com/4lpine)).