hono-express-adapter
v1.0.0
Published
Just a simple express adapter for hono
Downloads
3
Readme
Hono Express Adapter
Installation
npm install hono-express-adapter
Usage
import express from "express";
import { Hono } from "hono";
import { honoAdapter } from "hono-express-adapter";
const server = express();
const hono = new Hono();
hono.get("/ping", (c) => {
return c.text("pong");
});
server.use(
'/hono',
honoAdapter(hono)
)
server.listen(3000);
That's it! Now you can access your Hono server at http://localhost:3000/hono
.