@feathersjs/hooks
Version:
Async middleware for JavaScript and TypeScript
37 lines (22 loc) • 864 B
Markdown
# Hooks
[](https://github.com/feathersjs/hooks/actions/workflows/deno.yml)
[](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).