Socket
Socket
Sign inDemoInstall

mailtrap-client

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailtrap-client

Mailtrap.io api client with some added features


Version published
Maintainers
1
Weekly downloads
236
increased by11.85%

Weekly downloads

Readme

Source

mailtrap-client

Build Status

Wrapper around Mailtrap api for javascript. Added polling for messages as rxjs observer.

Installation

npm add mailtrap-client

or

yarn add mailtrap-client

Package contains typescript definitions so there is no need to install extra @types package.

Usage

Example:

import {MailtrapClient} from 'mailtrap-client';
// or
// const {MailtrapClient} = require('mailtrap-client');

const client = new MailtrapClient(
    'your_api_key'
);
const messages = await client.messages.getMessages(123);

Mailtrap client contains almost same structure as mailtrap api described in docs.

Valid client properties
user
companies
inboxes
sharedInboxes
messages
corsDomains

Keywords

FAQs

Last updated on 30 Aug 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc