{"id":15503283,"url":"https://github.com/johno/normalize-email","last_synced_at":"2025-04-22T23:42:26.671Z","repository":{"id":31731092,"uuid":"35297055","full_name":"johno/normalize-email","owner":"johno","description":"Normalize + and . emails -- ex.ample+foobar@gmail.com =\u003e example@gmail.com","archived":false,"fork":false,"pushed_at":"2020-03-31T16:17:13.000Z","size":12,"stargazers_count":39,"open_issues_count":1,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-13T17:29:32.633Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johno.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-08T19:10:32.000Z","updated_at":"2024-03-27T07:36:18.000Z","dependencies_parsed_at":"2022-09-08T13:22:34.917Z","dependency_job_id":null,"html_url":"https://github.com/johno/normalize-email","commit_stats":null,"previous_names":["johnotander/normalize-email"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fnormalize-email","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fnormalize-email/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fnormalize-email/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fnormalize-email/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johno","download_url":"https://codeload.github.com/johno/normalize-email/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250343751,"owners_count":21415035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T09:12:42.582Z","updated_at":"2025-04-22T23:42:26.648Z","avatar_url":"https://github.com/johno.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# normalize-email [![Build Status](https://secure.travis-ci.org/johnotander/normalize-email.png?branch=master)](https://travis-ci.org/johnotander/normalize-email)\n\nNormalize emails for uniqueness validation. This will convert the email to lowercase, remove dots (`.`), and plus signs\nfollowed by arbitrary strings (`+foobar`).\n\nBased on [normailize](https://github.com/soundcloud/normailize).\n\n## Installation\n\n```bash\nnpm install --save normalize-email\n```\n\n## Usage\n\n```javascript\nvar normalizeEmail = require('normalize-email')\n\nnormalizeEmail('johnotander@GMAIL.com')         // =\u003e 'johnotander@gmail.com'\nnormalizeEmail('john.o.t.a.n.d.e.r@gmail.com')  // =\u003e 'johnotander@gmail.com'\nnormalizeEmail('johnotander@googlemail.com')    // =\u003e 'johnotander@gmail.com'\nnormalizeEmail('johnotander+foobar@gmail.com')  // =\u003e 'johnotander@gmail.com'\nnormalizeEmail('JOHN.OTANDER+OHAI@gmail.com')   // =\u003e 'johnotander@gmail.com'\n```\n\n## Normalization Rules\n\nNormalization rules vary by domain. The rules implemented by this package are:\n1. \"plus\" \u0026mdash; remove first `+` mark and anything after it\n1. \"dot\" \u0026mdash; remove all `.` marks\n1. \"none\" \u0026mdash; do nothing\n\nEmails are normalized by domain as follows:\n1. `gmail.com` \u0026mdash; plus and dot\n1. `googlemail.com` (alias of gmail.com) \u0026mdash; plus and dot\n1. hotmail.com \u0026mdash; plus only\n1. live.com \u0026mdash; plus and dot\n1. outlook.com \u0026mdash; plus only\n1. all other domains \u0026mdash; none\n\n## License\n\nMIT\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\nCrafted with \u003c3 by John Otander ([@4lpine](https://twitter.com/4lpine)).\n\n***\n\n\u003e This package was initially generated with [yeoman](http://yeoman.io) and the [p generator](https://github.com/johnotander/generator-p.git).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fnormalize-email","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohno%2Fnormalize-email","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fnormalize-email/lists"}