{"_id":"1secmail-api","_rev":"5-97abdbbc46eb1b1cd37cd2baa74ede8b","name":"1secmail-api","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"1secmail-api","version":"1.0.0","description":"A Node API for 1secmail.com","main":"index.js","homepage":"https://github.com/lafkpages/1secmail","repository":{"type":"git","url":"git+https://github.com/lafkpages/1secmail.git"},"dependencies":{},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["temp","temporary","mail","email","temp mail","tempmailo","api","1secmail","1 sec mail","1 sec"],"author":{"name":"LuisAFK"},"license":"ISC","gitHead":"b95bc0136c2dd3a7c57b9a099048b0d86b3e28d2","bugs":{"url":"https://github.com/lafkpages/1secmail/issues"},"_id":"1secmail-api@1.0.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-tdnrqT4N6dhLRofSpfhTMbc12ZK/fU+9BqQBek9iKEpV/uC044EhqDFX4BmicvlVOx9Os03JqoWV5nnjwiek3Q==","shasum":"50a8269c345c8d3b6ab9701c109c44d66cde7413","tarball":"https://registry.npmjs.org/1secmail-api/-/1secmail-api-1.0.0.tgz","fileCount":4,"unpackedSize":5772,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQakmMp3rPt/CU1drwfwKN+LLA2nbMYDAU8C1BI68PkwIhANhZJsAU3YVnj5U07P45ZHBLIEB0xv+gLSXB97BnTSPO"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiWFwKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4yQ/+ObJvoDFPKJNkRsdEmePMsP3YVTpwXVD6vcLWn1Q7ON6hPb2R\r\nc8dCE1dwwWRmYsCIZWP8LhI0+sFrqKgFDVBTjTnOQQA3SNBbwQTT1cdupW8l\r\nBMrFvm00zl5nOTrZKTYkcVi+QNSc51onRla3f0y8GC+N1R/W4ZaEKCfMOBee\r\nxUyylCXHGY9ZJNR6W/TwD5zFVXfkZKEXv8xxC2IDY0sHWXhY5S0OAgtYs0LK\r\n6Pzy0i6Y2YEjthbGIQeZB1mDIl2Y830qUgl6O6esUTwJjBHlumW4cPXwl6no\r\nMw2E9ewBVPrI8Zwmmf+K6Awakcm8TLH0uq5KPe5Y1MA4mbwdDikM+v99PGjy\r\n8ACiRXwOk+mT7faQOBn8wQAtmf2tY42AgkFbkosma7yIQbW2QvBsYFXaW+mb\r\nlwo5vlZMuPnCIo5/QvfVU6fJY7dZlYwyhrB51VukJ/o6TKd2Kkqv+yTd2tyf\r\nryu5F4AIZrTVIx4eu0fA2orSS7kZwwc2sns3fXlqkfHrCwoEJxXGX5BC7DJg\r\nQBbKPJqqW6ARvVvzxkDFdiU3FjcKAnut/b9qEeqz/+GPwOo7pU13IZe70yRL\r\njy20rb9RCJjINxh+J+5onUyljgUuMEPbZzKt7oypvsisyqgYpNCtX4FHdeFv\r\nUh1tFZXzERzKnIPW1RbQ6hvaqY5/TzuCT9k=\r\n=iChD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"luisafk","email":"soy.lafk@gmail.com"},"directories":{},"maintainers":[{"name":"luisafk","email":"soy.lafk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/1secmail-api_1.0.0_1649957898065_0.7218488679766459"},"_hasShrinkwrap":false},"1.0.1":{"name":"1secmail-api","version":"1.0.1","description":"A Node API for 1secmail.com","main":"index.js","homepage":"https://github.com/lafkpages/1secmail","repository":{"type":"git","url":"git+https://github.com/lafkpages/1secmail.git"},"dependencies":{},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["temp","temporary","mail","email","temp mail","tempmailo","api","1secmail","1 sec mail","1 sec"],"author":{"name":"LuisAFK"},"license":"ISC","gitHead":"a5501781c460ff03e3e7253d5bca4e72b8456e2c","bugs":{"url":"https://github.com/lafkpages/1secmail/issues"},"_id":"1secmail-api@1.0.1","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-L6EtW8hj0cFHQJ82DzxPRvEiyii3JrY5ndWJD/CtKhPRN4GBhLLUfPo3cH6TRG3eaECt0LEF9voVR7Y5Wh2FNw==","shasum":"951d058647718bcfc3c9cc628de2d531fc22de0f","tarball":"https://registry.npmjs.org/1secmail-api/-/1secmail-api-1.0.1.tgz","fileCount":5,"unpackedSize":6815,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF3e/e/K+mzAexAuvGgl5xpwhmU8V0H9/p9AFESY7oajAiEAk8EOqd9vHvEmRMTkLxLyeh0/UkAPIYbpLWC0qtexCr8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiWF9FACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqwMA//WZ3i4yKBaA8qe2mUYQDXLYRGtnVA2PlUOLSMZJUnEM3i9IwP\r\nUkCatYJUnMfSraBCbkjfy+SZuprWhKHr+p3WiLzzHSXJRSgaSWEjAvtAf1s5\r\n6IoiER0s/8LKakpDTgZZJ4QaYyssu32a+l5Knj8Rc5F6Ml3wIkOo/PgHakot\r\n+Gw+2WcM0FfVGZjadUREv8UP3altficY1F4a4wti5+ngu03J4SIIELoiCAAl\r\noXQDCpI2/q9KAXH3T8c+ieYjp0nW+PsN1QHc5QW19bGbjPLPYvNxwDuVVBpM\r\nAo7MvnwXjCH3OZj3wZU5vimvuRkT0wLxSkZdT+e6mR7m6C0WrJG+/XNtu8Vc\r\nX533PXdeVitkn8j6CMwCO2xmMhlDqM3k+AQOHWWN1IGu+PchU7BvRFVB/WhT\r\ndnn6j9xAwFhOIpse+a4Z6WNBYM2XSfazGrOgy6vdwqW3Jxb86QGBtws5gDdP\r\nBV9iwURwi+dYD3rzvrvTxSEIgda5gvDO5nPVBoNsObiiJ7VKRV2jScmaSsXN\r\ntwlRkWbkR6Ig48IesqrTFMM8z0Kp7lAkc/0juS1b9quV0rMFaVT3ofDm1qLP\r\nMCfz30LiA1lDfbNNoIrY+hY/tcrFyzAU2lJzCLWOa+FFFVbZn+WWR8OLktZk\r\n4ITaU5QIiIB8M23iUI9M+yWV46Ms1lFOMow=\r\n=rVrs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"luisafk","email":"soy.lafk@gmail.com"},"directories":{},"maintainers":[{"name":"luisafk","email":"soy.lafk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/1secmail-api_1.0.1_1649958725203_0.018519704285172578"},"_hasShrinkwrap":false},"1.0.2":{"name":"1secmail-api","version":"1.0.2","description":"A Node API for 1secmail.com","main":"index.js","homepage":"https://github.com/lafkpages/1secmail","repository":{"type":"git","url":"git+https://github.com/lafkpages/1secmail.git"},"dependencies":{},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["temp","temporary","mail","email","temp mail","tempmailo","api","1secmail","1 sec mail","1 sec"],"author":{"name":"LuisAFK"},"license":"ISC","gitHead":"c5f5cdbde01c95becadc16320a1ec4b51481a5e8","bugs":{"url":"https://github.com/lafkpages/1secmail/issues"},"_id":"1secmail-api@1.0.2","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-vzqwtAg4tW/hpHxyXwwiXg81sZ7qQkrjoOze/piR1PRed7VSyXvaTzEOcPLYouAUIJVxs1celRb/pu6CuDnmpQ==","shasum":"f18dfa005876efb51bc591c08a1bc284418d5709","tarball":"https://registry.npmjs.org/1secmail-api/-/1secmail-api-1.0.2.tgz","fileCount":5,"unpackedSize":7182,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGPV3lwXF2rcz8QNKO4vNW1c6WhwBmtyC0al6RAw0AJlAiBUhFzUYQdVXf0EXItDI48XRq2VD+eEZTotkTnXNzj1AA=="}]},"_npmUser":{"name":"luisafk","email":"soy.lafk+npm@gmail.com"},"directories":{},"maintainers":[{"name":"luisafk","email":"soy.lafk+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/1secmail-api_1.0.2_1687772838685_0.3798951336216101"},"_hasShrinkwrap":false},"1.0.3":{"name":"1secmail-api","version":"1.0.3","description":"A Node API for 1secmail.com","main":"index.js","homepage":"https://github.com/lafkpages/1secmail","repository":{"type":"git","url":"git+https://github.com/lafkpages/1secmail.git"},"dependencies":{},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["temp","temporary","mail","email","temp mail","tempmailo","api","1secmail","1 sec mail","1 sec"],"author":{"name":"LuisAFK"},"license":"ISC","gitHead":"e227312dd4c9a59845a564ce651946c492b3443a","bugs":{"url":"https://github.com/lafkpages/1secmail/issues"},"_id":"1secmail-api@1.0.3","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-Y6myZRxokxHhrRJdFhfyX0W4vewguERhCX8qvkjmNdKk2pJ29u+KGCjw6iFviPS4+g/6RGM/jsGOe5vAq8tPqQ==","shasum":"f7da6cba6699cdafda26fb9dec3ac98d4e7f6519","tarball":"https://registry.npmjs.org/1secmail-api/-/1secmail-api-1.0.3.tgz","fileCount":4,"unpackedSize":6795,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEsXl8vVqUyPSlZTtys9z5jCVL4BkQPMIgBDrMn3ZNqQAiAhJEBCylSrBG/ZwbXRDL7ZtrB4RtHXx9q9j/Y8p89l5g=="}]},"_npmUser":{"name":"luisafk","email":"soy.lafk+npm@gmail.com"},"directories":{},"maintainers":[{"name":"luisafk","email":"soy.lafk+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/1secmail-api_1.0.3_1687772943557_0.39327673191502854"},"_hasShrinkwrap":false},"1.1.0":{"name":"1secmail-api","version":"1.1.0","description":"A Node API for 1secmail.com","main":"index.js","homepage":"https://github.com/lafkpages/1secmail","repository":{"type":"git","url":"git+https://github.com/lafkpages/1secmail.git"},"dependencies":{},"devDependencies":{},"scripts":{"test":"node test.js"},"keywords":["temp","temporary","mail","email","temp mail","tempmailo","api","1secmail","1 sec mail","1 sec"],"author":{"name":"LuisAFK"},"license":"ISC","gitHead":"c01edd6d7300992be3be3cf193b91b0bdd5814bd","bugs":{"url":"https://github.com/lafkpages/1secmail/issues"},"_id":"1secmail-api@1.1.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-PCbWfpQp4ksJFsRm7Wrf/UR2F21XYyu8oF0mfaVJHEJMyGRHqaBpk0a7ngoBL59tWwUaQA1VytutimENfqPoJQ==","shasum":"390603adf0c08e3cc161af559c2df1649669b941","tarball":"https://registry.npmjs.org/1secmail-api/-/1secmail-api-1.1.0.tgz","fileCount":4,"unpackedSize":6771,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEtYYqws3jGeDJLH+HgKTC3Gba/aqRuk3XM2KkZIwNsFAiEAoOdD8LzCg9LWjM7XSnbG1pTtYaOOk67MXyFxrXkJQh0="}]},"_npmUser":{"name":"luisafk","email":"soy.lafk+npm@gmail.com"},"directories":{},"maintainers":[{"name":"luisafk","email":"soy.lafk+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/1secmail-api_1.1.0_1687774578741_0.2103204200445168"},"_hasShrinkwrap":false},"1.1.1":{"name":"1secmail-api","version":"1.1.1","description":"A Node API for 1secmail.com","main":"index.js","homepage":"https://github.com/lafkpages/1secmail","repository":{"type":"git","url":"git+https://github.com/lafkpages/1secmail.git"},"devDependencies":{"prettier":"^2.8.8"},"scripts":{"test":"node test.js","format":"prettier --write ."},"keywords":["temp","temporary","mail","email","temp mail","tempmailo","api","1secmail","1 sec mail","1 sec"],"author":{"name":"LuisAFK"},"license":"ISC","gitHead":"4f11803e1b4425ef6fc56bec480d9c1f3a86dc30","bugs":{"url":"https://github.com/lafkpages/1secmail/issues"},"_id":"1secmail-api@1.1.1","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-KFTtWmggbC+hTAu2g8h7VhMMgw0qdUyRe4uEojsv9e8fzFOqjTfvq9ui9/ISSUX1GTeI0Ddup5H05Aq5CCCaHQ==","shasum":"0faeea83be57d2e6c7a57b845e28a5e4c3e58ec2","tarball":"https://registry.npmjs.org/1secmail-api/-/1secmail-api-1.1.1.tgz","fileCount":4,"unpackedSize":6972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDGZbQ5WBqw2e9sUd3NC2fXVfJwBYRX1O8Hl/2uRhcxBAiEAnihQCYSlpGAIekMvldHz7Re9vK0dDxwRUQTLznGKTcM="}]},"_npmUser":{"name":"luisafk","email":"soy.lafk+npm@gmail.com"},"directories":{},"maintainers":[{"name":"luisafk","email":"soy.lafk+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/1secmail-api_1.1.1_1687776844181_0.9912111962979555"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-14T17:38:18.065Z","1.0.0":"2022-04-14T17:38:18.243Z","modified":"2023-06-26T10:54:04.469Z","1.0.1":"2022-04-14T17:52:05.345Z","1.0.2":"2023-06-26T09:47:18.855Z","1.0.3":"2023-06-26T09:49:03.730Z","1.1.0":"2023-06-26T10:16:18.898Z","1.1.1":"2023-06-26T10:54:04.311Z"},"maintainers":[{"name":"luisafk","email":"soy.lafk+npm@gmail.com"}],"description":"A Node API for 1secmail.com","homepage":"https://github.com/lafkpages/1secmail","keywords":["temp","temporary","mail","email","temp mail","tempmailo","api","1secmail","1 sec mail","1 sec"],"repository":{"type":"git","url":"git+https://github.com/lafkpages/1secmail.git"},"author":{"name":"LuisAFK"},"bugs":{"url":"https://github.com/lafkpages/1secmail/issues"},"license":"ISC","readme":"# 1secmail-api\n\nA NodeJS API for [1secmail.com](https://1secmail.com)\n\n## Examples and usage\n\nThe below example creates an email account at `exampleAccount@1secmail.com` and fetches emails every 10 seconds.\n\n```javascript\nconst { TempMail } = require(\"1secmail-api\");\n\n// Create email account\nconst mail = new TempMail(\"exampleAccount\");\n\n// Enable auto-fetching full emails\nmail.autoFetch();\n\n// Wait until the client is ready\nmail.onReady(() => {\n  // Should show: exampleAccount@1secmail.com\n  console.log(\"Email ready! Address:\", mail.address);\n\n  // Get emails every 10 seconds\n  const fetch = () => {\n    mail.getMail().then((mails) => {\n      console.log(mails);\n\n      mail.deleteMail();\n    });\n  };\n\n  fetch();\n  setInterval(fetch, 10 * 1000);\n});\n```\n\nYou can also chose different domains by passing an extra argument to the `TempMail` constructor:\n\n```javascript\n// john@esiix.com\nconst mail = new TempMail(\"john\", \"esiix.com\");\n```\n\nTo generate random email addresses use `mail`\n\n```javascript\nmail.getRandomAddress();\n```\n\nTo download an attachment use `mail.getAttachment(id, file)` and pass the email ID and the file name.\n","readmeFilename":"README.md"}