Skip to content

Commit

Permalink
chore: Update package readme with Deno instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Mar 31, 2021
1 parent 44787cd commit b2c88ec
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions packages/hooks/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
# Hooks

[![CI GitHub action](https://github.com/feathersjs/hooks/workflows/Node%20CI/badge.svg)](https://github.com/feathersjs/hooks/actions?query=workflow%3A%22Node+CI%22)
[![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/hooks)](https://david-dm.org/feathersjs/feathers?path=packages/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 function.
`@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/[email protected]/deno/index.ts';
```

## Documentation

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

0 comments on commit b2c88ec

Please sign in to comment.