Skip to main content
Home

@hono/hello@0.1.2
Built and signed on GitHub Actions

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

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
76%
Published
2 weeks ago (0.1.2)

Hello middleware for Hono

codecov

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

Usage

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

const app = new Hono()

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

export default app

Author

Yusuke Wada https://github.com/yusukebe

License

MIT

Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@hono/hello

Import symbol

import * as hello from "@hono/hello";
or

Import directly with a jsr specifier

import * as hello from "jsr:@hono/hello";

Add Package

pnpm i jsr:@hono/hello
or (using pnpm 10.8 or older)
pnpm dlx jsr add @hono/hello

Import symbol

import * as hello from "@hono/hello";

Add Package

yarn add jsr:@hono/hello
or (using Yarn 4.8 or older)
yarn dlx jsr add @hono/hello

Import symbol

import * as hello from "@hono/hello";

Add Package

vlt install jsr:@hono/hello

Import symbol

import * as hello from "@hono/hello";

Add Package

npx jsr add @hono/hello

Import symbol

import * as hello from "@hono/hello";

Add Package

bunx jsr add @hono/hello

Import symbol

import * as hello from "@hono/hello";