{"id":26330698,"url":"https://github.com/TheDahoom/disposable-email","last_synced_at":"2025-03-15T22:17:01.885Z","repository":{"id":182175221,"uuid":"668062432","full_name":"TheDahoom/disposable-email","owner":"TheDahoom","description":"a lightweight, no dependencies, disposable email npm package with types forked from https://github.com/disposable/disposable","archived":false,"fork":false,"pushed_at":"2024-02-25T18:02:10.000Z","size":2736,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-26T02:43:46.132Z","etag":null,"topics":["disposable-domains","disposable-email","disposable-email-blocker","disposable-email-domains","disposable-emails","github-actions","lightweight","no-dependencies","typescript","updated"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@dahoom/disposable-email","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheDahoom.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-19T00:07:59.000Z","updated_at":"2024-04-16T19:35:04.000Z","dependencies_parsed_at":"2023-11-10T13:24:33.014Z","dependency_job_id":"0f7587f8-6c17-479b-a0d3-c9a1aeb76042","html_url":"https://github.com/TheDahoom/disposable-email","commit_stats":null,"previous_names":["dahoom152/disposable-email"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDahoom%2Fdisposable-email","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDahoom%2Fdisposable-email/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDahoom%2Fdisposable-email/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDahoom%2Fdisposable-email/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheDahoom","download_url":"https://codeload.github.com/TheDahoom/disposable-email/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243796739,"owners_count":20349264,"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":["disposable-domains","disposable-email","disposable-email-blocker","disposable-email-domains","disposable-emails","github-actions","lightweight","no-dependencies","typescript","updated"],"created_at":"2025-03-15T22:17:00.900Z","updated_at":"2025-03-15T22:17:01.873Z","avatar_url":"https://github.com/TheDahoom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Disposable email domains\n\u003e a simple, no dependencies, regularly updated disposable email npm package with types forked from https://github.com/disposable/disposable\n\n[![Update](https://github.com/Dahoom152/disposable-email/actions/workflows/node.js.yml/badge.svg)](https://github.com/Dahoom152/disposable-email/actions/workflows/node.js.yml)\n[![npm version](https://img.shields.io/npm/v/@dahoom/disposable-email)](https://img.shields.io/npm/v/@dahoom/disposable-email)\n[![installs](https://img.shields.io/npm/dm/@dahoom/disposable-email)](https://npmtrends.com/@dahoom152/disposable-email)\n[![install size](https://packagephobia.com/badge?p=@dahoom/disposable-email)](https://packagephobia.com/result?p=@dahoom/disposable-email)\n[![minzip size](https://img.shields.io/bundlephobia/minzip/%40dahoom%2Fdisposable-email)](https://img.shields.io/bundlephobia/minzip/%40dahoom%2Fdisposable-email)\n```\nnpm i @dahoom/disposable-email\n```\n\nI recommend using this serverside to avoid malicious workarounds\n\n## Examples\n\nregular usage:\n```\nimport disposable from \"@dahoom/disposable-email\";\n\nconst email = 'me@example.com';\n\n//returns true if the email is disposable, false if not\nconst temp = disposable.validate(email);\n\nif(!temp){\n  return 'disposable emails are not allowed';\n}\n```\n\nif you just want to import the function itself:\n```\nimport { validate } from \"@dahoom/disposable-email\";\n\nconst email = 'me@example.com';\n\n//returns true if the email is disposable, false if not\nconst temp = validate(email);\n\nif(!temp){\n  return 'disposable emails are not allowed';\n}\n```\n## Description\n\n| Function                                     | Description                                                           |\n| -------------------------------------------- | --------------------------------------------------------------------- |\n| `validate(domainOrEmail, callback)` | Validates if a domain or email is disposable.                          |\n\n| Parameter     | Description             |\n| ------------- | ----------------------- |\n| `domainOrEmail`| The domain or email to validate.|\n| `callback`     | The optional callback function to execute after validation.|\n\n| Returns  | Description                                                          |\n| -------- | -------------------------------------------------------------------- |\n| `boolean`| Returns true if the domain or email is not disposable, false otherwise.|\n\n## Credits\n\nTypes included from [@types/disposable-email](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/disposable-email/index.d.ts)\n\nForked from https://github.com/disposable/disposable \n\nA collection of domains for disposable email services like [10MinuteMail](http://10minutemail.com) and [GuerrillaMail](https://www.guerrillamail.com). Also, some 🛠 to make your life easier.\n\n-\thttps://github.com/adamloving\n-\thttps://github.com/michenriksen\n-\thttps://github.com/ivolo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheDahoom%2Fdisposable-email","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTheDahoom%2Fdisposable-email","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheDahoom%2Fdisposable-email/lists"}