# @feathersjs/hooks

> Async middleware for JavaScript and TypeScript

Latest version **0.9.0** (published 2024-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @feathersjs/hooks
pnpm add @feathersjs/hooks
yarn add @feathersjs/hooks
bun add @feathersjs/hooks
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.9.0 |
| Published | 2024-02-25 |
| First published | 2020-01-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 14 |
| Dependencies | 0 |
| Unpacked size | 46.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 158 |
| Author | Feathers contributor |
| Maintainers | daffl, marshallswain, alexisabril |
| Keywords | feathers, hooks, hook, async, middleware |

## Links

- npm: https://www.npmjs.com/package/@feathersjs/hooks
- Repository: https://github.com/feathersjs/hooks
- Homepage: https://feathersjs.com
- Issues: https://github.com/feathersjs/hooks/issues
- npm.io page: https://npm.io/package/@feathersjs/hooks

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.9.0 (latest) — 2024-02-25
- 6.0.0-pre.0 (pre) — 2026-01-31
- 0.8.1 — 2023-02-10
- 0.8.0 — 2023-02-07
- 0.7.6 — 2022-12-08
- 0.7.5 — 2022-06-04
- 0.7.4 — 2022-04-27
- 0.7.3 — 2022-02-05
- 0.7.2 — 2021-11-20
- 0.7.1 — 2021-11-20
- 0.7.0 — 2021-11-19
- 0.6.5 — 2021-04-20
- 0.6.4 — 2021-04-11
- 0.6.3 — 2021-03-31
- 0.6.2 — 2021-02-08
- … 8 more at https://npm.io/package/@feathersjs/hooks/versions

## README

# Hooks

[![Deno CI](https://github.com/feathersjs/hooks/actions/workflows/deno.yml/badge.svg)](https://github.com/feathersjs/hooks/actions/workflows/deno.yml)
[![Download Status](https://img.shields.io/npm/dm/@feathersjs/hooks.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/hooks)

`@feathersjs/hooks` brings Koa style middleware to any asynchronous JavaScript and TypeScript function or class.

## Installation

### Node

```
npm install @feathersjs/hooks --save
```

```js
const { hooks } = require('@feathersjs/hooks');

import { hooks } from '@feathersjs/hooks';
```

### Deno

```js
import { hooks } from 'https://deno.land/x/hooks/src/index.ts';
```

## Documentation

See [feathersjs/hooks](https://github.com/feathersjs/hooks/) for the complete documentation.

## License

Copyright (c) 2020

Licensed under the [MIT license](LICENSE).

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