{"id":16739437,"url":"https://github.com/williamfalcon/node-tempmail","last_synced_at":"2025-03-15T22:43:55.641Z","repository":{"id":75973821,"uuid":"64776199","full_name":"williamFalcon/node-tempmail","owner":"williamFalcon","description":null,"archived":false,"fork":false,"pushed_at":"2016-08-02T17:08:55.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T11:47:41.901Z","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/williamFalcon.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":"2016-08-02T17:07:21.000Z","updated_at":"2016-08-02T17:12:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"90ef6015-40dc-47d1-94be-8943fd3bb832","html_url":"https://github.com/williamFalcon/node-tempmail","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamFalcon%2Fnode-tempmail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamFalcon%2Fnode-tempmail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamFalcon%2Fnode-tempmail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamFalcon%2Fnode-tempmail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/williamFalcon","download_url":"https://codeload.github.com/williamFalcon/node-tempmail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801611,"owners_count":20350106,"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-13T00:51:07.152Z","updated_at":"2025-03-15T22:43:55.616Z","avatar_url":"https://github.com/williamFalcon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tempmail\n\nEasily create temporary emails and fetch their inbox.\n\n## Usage \u0026 Installation\n\n```\nnpm install tempmail\n```\n\nto use the CLI interface, install globally with `-g`\n\n\n### From the command line\n\n```bash\n./tempmail \u003cprovider\u003e [emailAddress]\n```\n\n- Specifying only a provider will create a new temporary email address.\n- Specifying a provider + email will return the inbox (in JSON format).\n\ne.g.\n\n```javascript\n[\n    {\n        \"from\": \"John Smith\u003cjohn@example.com\u003e\",\n        \"to\": \"zqm46662@ssoia.com\",\n        \"subject\": \"sample subject\",\n        \"date\": \"just now\",\n        \"content\": \"\\n\\t \u003cp\u003e3434234\u003c/p\u003e\\n\\t\"\n    },\n\t{ /* another email message ... */ }\n]\n```\n\n### As a Node.js module\n\nIt follows the same concept, and returns the inbox array vs. a JSON representation of it.\n\n```javascript\nvar tempmail = require('tempmail');\n\nvar provider = '10minutemail.net'; // or '10mm.net'\n\n// Create a new temporary email\ntempmail.new(provider).then(function(tempEmail) {\n\tconsole.log('new temporary email', tempEmail);\n\t// Retrieve emails from an email address\n\treturn tempmail.get(provider, tempEmail);\n}).done(function (inbox) {\n\tconsole.log('The inbox (empty array - no emails sent yet)');\n\tconsole.log(inbox);\n});\n```\n\n## Providers\n\nProviders are services that provide temporary emails.\n\n - [10minutemail.net](http://10minutemail.net/)\n - That's it for now.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamfalcon%2Fnode-tempmail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilliamfalcon%2Fnode-tempmail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamfalcon%2Fnode-tempmail/lists"}