0.0.1 • Published 7 months ago

hono-firebase-functions v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

hono-firebase-functions

Firebase Hono Adapter

hono-firebase-functions is an adapter that allows you to run a Hono application on Firebase Functions by bridging Firebase's HTTP request/response to Hono's fetch API pipeline.

Installation

npm install hono firebase-functions hono-firebase-functions
import {onRequest} from "firebase-functions/v2/https";
import {handle} from "hono-firebase-functions";
import {Hono} from "hono";

const app = new Hono();

app.get("/", (c) => {
  return c.text("Hello Hono!");
});

export const hono = onRequest(handle(app));
0.0.1

7 months ago