{"_id":"10minutemail","_rev":"3-0fd1f1542fdf314c3e751e0735fa50d5","name":"10minutemail","description":"10 minute mail api","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"10minutemail","version":"0.1.0","description":"10 minute mail api","main":"index.js","scripts":{"start":"node .","test":"node test"},"repository":{"type":"git","url":"git+https://github.com/orapouso/node-10minutemail.git"},"keywords":["10minutemail","api"],"author":{"name":"Rafael Raposo","email":"orapouso@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/orapouso/node-10minutemail/issues"},"homepage":"https://github.com/orapouso/node-10minutemail#readme","dependencies":{"debug":"^2.6.1","request":"^2.79.0"},"gitHead":"00fa253521f276fdb5afdaa8f0a4bf0c92de855f","_id":"10minutemail@0.1.0","_shasum":"a7f4fe1328dec08e274b79a7be01b1353a6d97ea","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"orapouso","email":"orapouso@gmail.com"},"dist":{"shasum":"a7f4fe1328dec08e274b79a7be01b1353a6d97ea","tarball":"https://registry.npmjs.org/10minutemail/-/10minutemail-0.1.0.tgz","integrity":"sha512-aqXvnYSLsTvGkoO3eykUEml34rw99eN9YcHdknOQIuooM6UKFDBXkzKbEXAHwEZWKQZedZLJ4dS4zBA+oVWapA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBZ+EqRMb5AtOyxzNk1OOWDQ0VddHdIpq9tnqcWfHXFgIgPxx3JeoJdu6n4pxn3cMm8OBGjou3X717NriO5ERw+xo="}]},"maintainers":[{"name":"orapouso","email":"orapouso@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/10minutemail-0.1.0.tgz_1487264863565_0.8475900590419769"}},"0.2.0":{"name":"10minutemail","version":"0.2.0","description":"10 minute mail api","main":"index.js","scripts":{"start":"node .","test":"node test"},"repository":{"type":"git","url":"git+https://github.com/orapouso/node-10minutemail.git"},"keywords":["10minutemail","api"],"author":{"name":"Rafael Raposo","email":"orapouso@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/orapouso/node-10minutemail/issues"},"homepage":"https://github.com/orapouso/node-10minutemail#readme","dependencies":{"debug":"^2.6.1","request":"^2.79.0"},"gitHead":"148f0ca6068e0f8587c68fd32111d91036ba21d0","_id":"10minutemail@0.2.0","_shasum":"9e5271ebafdd437c5a3c5a07eb23ca2ea1b25604","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"orapouso","email":"orapouso@gmail.com"},"dist":{"shasum":"9e5271ebafdd437c5a3c5a07eb23ca2ea1b25604","tarball":"https://registry.npmjs.org/10minutemail/-/10minutemail-0.2.0.tgz","integrity":"sha512-ohAlGhpLKWRnmQEXCxAva5VczuheIb19FvasleNer/PAuyVoJccC6AM1Ds8EqclVwPkAxLpJPY5u5ECUL9BHqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDSnkSc5ItsAJDQN5vnh2l8lsyIg8umwJjAiw1RgkF7IAiACvX8irzQbtn7Rl3HVcM62EqLDjniNipHyDbhpXhsCZg=="}]},"maintainers":[{"name":"orapouso","email":"orapouso@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/10minutemail-0.2.0.tgz_1487269040274_0.6585292301606387"}}},"readme":"# 10minutemail Node API\n\nAPI to create and retrieve mail from [10minutemail](https://10minutemail.com)\n\n```\nnpm install 10minutemail\n```\n\n## Usage\n\n```js\nvar minutemail = require('10minutemail')\n\nmail = minutemail({timeout: 10000, startup: true})\n\nmail.on('address', (address) => console.log(address))\nmail.on('mail', (mails) => console.log(mails[0].subject))\nmail.on('count', (count) => console.log(count)\n```\n\n## API\n\nThe factory returns an EventEmitter that emits 3 events whenever they happen\n\n#### `var mail = minutemail([options])`\n\nCreates a new minutemail emitter that starts as soon as it stablishes a connection, and fetches the site every 10 seconds\n\nOptions include:\n\n```js\n{\n  timeout: 10000,\n  startup: true    // setting this to false would only create the emitter and retrieve the email address created\n}\n```\n\n### Properties\n\n##### `mail.address`\n\nHolds the email address retrieved from 10minutemail.com. This is an asynchronous fetch, so it may not be readily available. Listen for the `address` event.\n\n### Methods\n\n#### `mail.start()`\n\nStarts fetching emails and counts from 10minutemail.com\n\n#### `mail.stop()`\n\nStops fetching emails and counts\n\n## Events\n\n#### `mail.on('address')`\n\nEmitted when the email address is retrieved. After it retrieves, the address is stored in the EventEmitter and accessed as `mail.address`\n\n#### `mail.on('mail')`\n\nEmitted when there are any emails in the inbox\n\n#### `mail.on('count')`\n\nEmitted when for every count request, event if it is 0","maintainers":[{"name":"orapouso","email":"orapouso@gmail.com"}],"time":{"modified":"2022-06-12T14:05:30.282Z","created":"2017-02-16T17:07:43.789Z","0.1.0":"2017-02-16T17:07:43.789Z","0.2.0":"2017-02-16T18:17:20.511Z"},"homepage":"https://github.com/orapouso/node-10minutemail#readme","keywords":["10minutemail","api"],"repository":{"type":"git","url":"git+https://github.com/orapouso/node-10minutemail.git"},"author":{"name":"Rafael Raposo","email":"orapouso@gmail.com"},"bugs":{"url":"https://github.com/orapouso/node-10minutemail/issues"},"license":"MIT","readmeFilename":"README.md"}