Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@maildrop/api

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maildrop/api

node-js API for maildrop.cc

  • 1.0.19
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
decreased by-13.64%
Maintainers
1
Weekly downloads
 
Created
Source

node-js API for maildrop.cc

helper APIs to fetch mail objects from https://maildrop.cc

install

with npm do:

npm install --save @maildrop/api

usage

for basic test

const mails = await maildrop.fetchMails("linto@maildrop.cc");
console.log(`${mails.length || "zero"} mails`);

for (const mail of mails)
  console.log(`==========\n${JSON.stringify(mail, null, 2)}\n==========`);
async fetchMails(email)

fetch mails @return Object[] like this { id, from, to, subject, date, body, html }[]

opttypedescription
emailString[required] sample linto@maildrop.cc
{
  "id": "HrYSsdRcRA",
  "from": "Linto Cheeran <linto.cet@gmail.com>",
  "to": "linto",
  "subject": "subject",
  "date": "2020-04-08T21:47:13Z",
  "body": "raw email body",
  "html": "html body"
}
async deleteMail(email, id)

delete individual mail @return [Object] { deleted: true }

opttypedescription
emailString[required] sample linto@maildrop.cc
idString[required] individual mail object id
for (const mail of mails)
  console.log(await maildrop.deleteMail("linto@maildrop.cc", mail.id));
async getApiKey(force)

return String x-api-key, you can use this in http header

opttypedescription
forceBoolean[optional] for forceful refresh

Keywords

FAQs

Package last updated on 10 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc