Huge News!Announcing our $40M Series B led by Abstract Ventures.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
  • Socket score

Version published
Weekly downloads
74
increased by105.56%
Maintainers
1
Weekly downloads
 
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

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

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