mirror of
https://github.com/honojs/hono.git
synced 2024-11-22 11:17:33 +01:00
42 lines
491 B
Markdown
42 lines
491 B
Markdown
# hono
|
|
|
|
Minimal web framework for Cloudflare Workers.
|
|
|
|
## Install
|
|
|
|
```sh
|
|
$ yarn add hono
|
|
```
|
|
|
|
or
|
|
|
|
```sh
|
|
$ npm install hono
|
|
```
|
|
|
|
## Hello hono!
|
|
|
|
```js
|
|
const Hono = require("hono");
|
|
const app = Hono();
|
|
|
|
app.get("/", () => new Response("Hono!!"));
|
|
|
|
app.fire(); // call `addEventListener`
|
|
```
|
|
|
|
Then, run `wrangler dev`.
|
|
|
|
## Related projects
|
|
|
|
- <https://github.com/bmf-san/goblin>
|
|
- <https://github.com/kwhitley/itty-router>
|
|
|
|
## Author
|
|
|
|
Yusuke Wada <https://github.com/yusukebe>
|
|
|
|
## License
|
|
|
|
MIT
|