🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

mailtrap-client

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailtrap-client

Mailtrap.io api client with some added features

1.1.1
latest
npm
Version published
Maintainers
1
Created
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

mailtrap

FAQs

Package last updated on 30 Aug 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