# cypress-webhookdotsite

> cypress npm extension to allow for email and webhook testing through webhook.site

Latest version **1.0.9** (published 2025-01-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install cypress-webhookdotsite
pnpm add cypress-webhookdotsite
yarn add cypress-webhookdotsite
bun add cypress-webhookdotsite
```

## Health

**Score 40/100 (D)** — status: stable.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2025-01-07 |
| First published | 2022-01-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Tylor Mayfield |
| Maintainers | ghostbackwards |
| Keywords | cypress, npm, webhook, email, testing, emailtesting, webhooktesting, automation, testautomation, webtesting |

## Links

- npm: https://www.npmjs.com/package/cypress-webhookdotsite
- Repository: https://github.com/TylorMayfield/cypress-webhookdotsite
- Homepage: https://github.com/TylorMayfield/cypress-webhookdotsite#readme
- Issues: https://github.com/TylorMayfield/cypress-webhookdotsite/issues
- npm.io page: https://npm.io/package/cypress-webhookdotsite

## Dependencies (1)

- [typescript](https://npm.io/package/typescript.md) ^5.3.3

## 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.9 (latest) — 2025-01-07
- 1.0.8 — 2022-09-21
- 1.0.7 — 2022-09-21
- 1.0.6 — 2022-07-11
- 1.0.5 — 2022-01-11
- 1.0.4 — 2022-01-11
- 1.0.3 — 2022-01-09
- 1.0.2 — 2022-01-07
- 1.0.1 — 2022-01-07
- 1.0.0 — 2022-01-07

## README

[![Node.js Package](https://github.com/TylorMayfield/cypress-webhookdotsite/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/TylorMayfield/cypress-webhookdotsite/actions/workflows/npm-publish.yml)

[![NPM](https://nodei.co/npm/cypress-webhookdotsite.png?mini=true)](https://npmjs.org/package/cypress-webhookdotsite)

# cypress-webhookdotsite

cypress npm extension to allow for email and webhook testing through webhook.site

### What is it?

Webhook.site is a developer tool that provides email and webhook testing. This is a third party library and I have no affiliation to webhook.site or any of its partners.

### Installation

```sh
npm install cypress-webhookdotsite --save-dev
```

Once downloaded, add the following line to `cypress/support/index.js` to import the commands into your Cypress project:

```js
require('cypress-webhookdotsite');
```

### Example Usage

```js
cy.webhookGenerateToken({
  apikey: 'ff07eb99-ed12-4f55-8fa1-65c7567d41b9',
  password: 'Password1234',
}).then((token) => {
  cy.log(`Token: ${token}`);
  cy.webhookGetEmailAddress({
    token: token,
    apikey: 'ff07eb99-ed12-4f55-8fa1-65c7567d41b9',
    password: 'Password1234',
  }).then((emailAddress) => {
    console.log(emailAddress);
    cy.log(`Email Address: ${emailAddress}`);
  });
  cy.webhookGetURI({
    token: token,
    apikey: 'ff07eb99-ed12-4f55-8fa1-65c7567d41b9',
    password: 'Password1234',
  }).then((webHookURI) => {
    console.log(webHookURI);
    cy.log(`WebHook URI: ${webHookURI}`);
    cy.request(webHookURI);
  });
  cy.webhookGetAllRequests({
    token: token,
    apikey: 'ff07eb99-ed12-4f55-8fa1-65c7567d41b9',
    password: 'Password1234',
  }).then((responses) => {
    console.log(responses);
    responses.forEach((response) => {
      cy.log(`Response: ${response.ip}`);
    });
  });
});
```

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