# maildrop-api

> Wrapper around maildrop.cc API

Latest version **1.0.3** (published 2017-08-20) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install maildrop-api
pnpm add maildrop-api
yarn add maildrop-api
bun add maildrop-api
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2017-08-20 |
| First published | 2017-08-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Rajish Vijayan |
| Maintainers | xrajishx |
| Keywords | maildrop |

## Links

- npm: https://www.npmjs.com/package/maildrop-api
- Repository: https://github.com/xrajishx/maildrop-api
- Homepage: https://github.com/xrajishx/maildrop-api#readme
- Issues: https://github.com/xrajishx/maildrop-api/issues
- npm.io page: https://npm.io/package/maildrop-api

## Dependencies (1)

- [request](https://npm.io/package/request.md) 2.81.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2017-08-20
- 1.0.2 — 2017-08-19
- 1.0.1 — 2017-08-19
- 1.0.0 — 2017-08-19

## README

# maildrop-api
Wrapper module around [maildrop.cc](http://maildrop.cc) API.

[![npm](https://img.shields.io/npm/v/maildrop-api.svg)](https://www.npmjs.com/package/maildrop-api)
[![Travis](https://img.shields.io/travis/xrajishx/maildrop-api.svg)](https://travis-ci.org/xrajishx/maildrop-api)
[![Coverage Status](https://coveralls.io/repos/github/xrajishx/maildrop-api/badge.svg)](https://coveralls.io/github/xrajishx/maildrop-api)
[![dependencies Status](https://david-dm.org/xrajishx/maildrop-api/status.svg)](https://david-dm.org/xrajishx/maildrop-api)
[![devDependencies Status](https://david-dm.org/xrajishx/maildrop-api/dev-status.svg)](https://david-dm.org/xrajishx/maildrop-api?type=dev)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/xrajishx/maildrop-api/master/LICENSE)

### Installation
```bash
npm install maildrop-api
```
### Usage
```javascript
const maildrop = require('maildrop-api');

const mailBox = 'john';
const emailId = 'ehFA9k';

// Get inbox
maildrop.getInbox(mailBox).then(emails => {
  console.log(emails);
});

// Get email
maildrop.getEmail(mailBox, emailId).then(email => {
  console.log(email);
});

// Delete email
maildrop.deleteEmail(mailBox, emailId).then(result => {
  console.log(result);
});

// Suggestion API
maildrop.suggestion().then(suggestion => {
  console.log(suggestion);
});

// Blocked API
maildrop.blocked().then(blocked => {
  console.log(blocked);
});
```
### Development
Clone the project and install dependencies:
```bash
$ git clone https://github.com/xrajishx/maildrop-api.git
$ cd maildrop-api
$ npm install
```
Test:
```bash
$ npm test
```

---
_Source: https://npm.io/package/maildrop-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
