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

fake-smtp-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

fake-smtp-client

A TypeScript client for `fake-smtp-server`.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
50
decreased by-3.85%
Maintainers
1
Weekly downloads
 
Created
Source

fake-smtp-client

A TypeScript client for fake-smtp-server.

API

getMails(options, filter?)

import {
  deleteMails,
  type FakeSMTPOptions,
  type Filter,
} from 'fake-smtp-client';

const options = {
  url: 'https://example.org/api/emails',
  username: 'hedwig', //optional
  password: 'alohomora', // optional
} satisfies FakeSMTPOptions;

const allMails = await getMails(options);

const filter = {
  since: '1980-07-31T00:00:00Z';
  until: '1998-05-2T00:00:00Z';
  to: 'h.potter@hogwarts.edu';
  from: 'g.weasley@hogwarts.edu';
} satisfies Filter;

const magicMails = await getMails(options, filter);

deleteMails(options)

Deletes all mails.

import { deleteMails, type FakeSMTPOptions } from 'fake-smtp-client';

const options = {
  url: 'https://example.org/api/emails',
  username: 'hedwig', //optional
  password: 'alohomora', // optional
} satisfies FakeSMTPOptions;

await deleteMails(options);

Keywords

FAQs

Package last updated on 21 Apr 2023

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