# webhook.space

> Webhook Simplifier

Latest version **1.0.0** (published 2018-12-07) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install webhook.space
pnpm add webhook.space
yarn add webhook.space
bun add webhook.space
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-12-07 |
| First published | 2018-12-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | iREDMe |
| Maintainers | ired_me |
| Keywords | webhook, botlist.space, botlist.space webhook |

## Links

- npm: https://www.npmjs.com/package/webhook.space
- Repository: https://github.com/BLU-Shack/webhook.space
- Homepage: https://github.com/BLU-Shack/webhook.space#readme
- Issues: https://github.com/BLU-Shack/webhook.space/issues
- npm.io page: https://npm.io/package/webhook.space

## Recent versions

- 1.0.0 (latest) — 2018-12-07

## README

# Webhook.Space

A random webhook thing.

Some code is referenced from [dbl-api](https://www.npmjs.com/package/dbl-api)'s [source](https://github.com/xDimGG/dbl-api/blob/master/src/Client.js#L181) [code](https://github.com/xDimGG/dbl-api/blob/master/src/Util.js#L2)

```js
const Space = require('webhook.space');

// options.port (?number) => The port to listen for.
// options.path (?string) => The path/endpoint to watch for POSTs.
// options.token (?string) => The bot/guild's API token to validate an upvote.
const Webhook = new Space.Webhook({ port: 1234, path: '/', token: null });

 // Deactivate/reactivate the webhook.
Webhook.close().open();

 // The upvote event.
Webhook.on('upvote', (body, headers) => {
    // Do something with the body and/or headers.
});
```

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