monorepo for Hono third-party middleware/helpers/wrappers
 
 
Go to file
Kei Kamikawa cd1a9141b5
added "private: false" in package.json
2022-07-28 15:16:00 +09:00
.github/workflows added test-with-emulator task 2022-07-28 15:09:05 +09:00
src initial commit 2022-07-28 14:58:54 +09:00
test initial commit 2022-07-28 14:58:54 +09:00
.gitignore initial commit 2022-07-28 14:58:54 +09:00
README.md Initial commit 2022-07-23 23:56:20 +09:00
firebase.json initial commit 2022-07-28 14:58:54 +09:00
jest.config.js initial commit 2022-07-28 14:58:54 +09:00
package.json added "private: false" in package.json 2022-07-28 15:16:00 +09:00
tsconfig.json Initial commit 2022-07-23 23:56:20 +09:00
yarn.lock initial commit 2022-07-28 14:58:54 +09:00

README.md

Hello middleware for Hono

An example project of the third-party middleware for Hono. This middleware add X-Message header to the Response.

Usage

import { hello } from '@honojs/hello'
import { Hono } from 'hono'

const app = new Hono()

app.use('*', hello('Hello!! Hono!!'))
app.get('/', (c) => c.text('foo'))

export default app

Deno

import { serve } from 'https://deno.land/std/http/server.ts'
import { hello } from 'https://deno.land/x/hono_hello/mod.ts'
import { Hono } from 'https://deno.land/x/hono/mod.ts'

const app = new Hono()

app.use('*', hello('Hello!! Hono!!'))
app.get('/', (c) => c.text('foo'))

serve(app.fetch)

Author

Yusuke Wada https://github.com/yusukebe

License

MIT