temp-mail.org
v1.0.0
Published
Temp-Mail.org API for JavaScript (with Fetch API)
Downloads
9
Readme
Temp-Mail.org API for JavaScript (with Fetch API)
Install
npm install temp-mail-client
Usage
import TempMail from 'temp-mail-client'
// Generate new mailbox
const client = await new TempMail().init()
// Email address
console.log(client.mailbox)
// Refresh inbox
await client.receive()
console.log(client.inbox)
// Get message object
const { _id } = client.inbox[0]
const data = await client.message(_id)
console.log(data)
// Destroy & Regenerate mailbox (new email address)
await client.init()