# tus-webhook

> Express middleware for parsing tus webhook.

Latest version **1.0.2** (published 2019-05-12) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install tus-webhook
pnpm add tus-webhook
yarn add tus-webhook
bun add tus-webhook
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-05-12 |
| First published | 2019-05-12 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 29.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alice Plex |
| Maintainers | joshuaavalon |
| Keywords | tus, webhook, express |

## Links

- npm: https://www.npmjs.com/package/tus-webhook
- Repository: https://gitlab.com/joshua-avalon/tus-webhook
- Homepage: https://gitlab.com/joshua-avalon/tus-webhook#readme
- Issues: https://gitlab.com/joshua-avalon/tus-webhook/issues
- npm.io page: https://npm.io/package/tus-webhook

## Dependencies (2)

- [ajv](https://npm.io/package/ajv.md) ^6.10.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.4.4

## Recent versions

- 1.0.2 (latest) — 2019-05-12
- 1.0.1 — 2019-05-12

## README

# tus-webhook

[![License][license_badge]][license] [![Pipelines][pipelines_badge]][pipelines] [![Coverage][coverage_badge]][pipelines] [![NPM][npm_badge]][npm]

Express middleware for parsing tus webhook.

## Installation

```bash
npm i tus-webhook
```

## Usage

```typescript
import express, { Express } from "express";
import bodyParser from "body-parser";

import { handleTusdHook, Tusd, TusdRequest } from "tus-webhook";

const app = express();
app.use(bodyParser.json());
app.post("/hook", handleTusdHook, (req, res) => {
  const { tusd } = req as TusdRequest;
  // Do something with tusd
  res.json({});
});
```

[license]: https://gitlab.com/joshua-avalon/tus-webhook/blob/master/LICENSE
[license_badge]: https://img.shields.io/badge/license-Apache--2.0-green.svg
[pipelines]: https://gitlab.com/joshua-avalon/tus-webhook/pipelines
[pipelines_badge]: https://gitlab.com/joshua-avalon/tus-webhook/badges/master/pipeline.svg
[coverage_badge]: https://gitlab.com/joshua-avalon/tus-webhook/badges/master/coverage.svg
[npm]: https://www.npmjs.com/package/tus-webhook
[npm_badge]: https://img.shields.io/npm/v/tus-webhook/latest.svg

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