Skip to main content

@fedify/hono@2.1.10
Built and signed on GitHub Actions

Works with
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 Score100%
License
MIT
Downloads45/wk
Published2 days ago (2.1.10)

Functions

f
federation<TContextData, THonoContext extends HonoContext>(
federation: Federation<TContextData>,
contextDataFactory: ContextDataFactory<TContextData, THonoContext>
): HonoMiddleware<THonoContext>

Create a Hono middleware to integrate with the Federation object.

Interfaces

Type Aliases

T
ContextDataFactory<TContextData, THonoContext> = (context: THonoContext) => TContextData | Promise<TContextData>

A factory function to create a context data for the Federation object.

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:@fedify/hono

Import symbol

import * as mod from "@fedify/hono";
or

Import directly with a jsr specifier

import * as mod from "jsr:@fedify/hono";