1.0.0 • Published 11 months ago

hono-express-adapter v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

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.

1.0.0

11 months ago