Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jill64 committed Oct 6, 2023
1 parent a2288e3 commit df1dd8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ A framework for building GitHub Apps with Cloudflare Worker
## Installation

```sh
npm i octoflare-app
npm i octoflare
```

## Example

```js
// src/index.js
import { octoflare } from 'octoflare-app'
import { octoflare } from 'octoflare'

export default octoflare((request, env, { app, payload }) => {
export default octoflare(({ request, env, app, payload }) => {
// Application Code
})
```
Expand All @@ -27,4 +27,4 @@ compatibility_date = "YYYY-MM-DD"
compatibility_flags = ["nodejs_compat"]
```

[Type Definition](./src/types/OctoflareApp.ts)
[Type Definition](./src/types/OctoflareHandler.ts)

0 comments on commit df1dd8e

Please sign in to comment.