2021-12-14 21:17:56 +01:00
|
|
|
# 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`.
|
2021-12-14 20:26:22 +01:00
|
|
|
|
2021-12-14 21:31:37 +01:00
|
|
|
## Related projects
|
|
|
|
|
|
|
|
- <https://github.com/bmf-san/goblin>
|
|
|
|
- <https://github.com/kwhitley/itty-router>
|
|
|
|
|
2021-12-14 20:26:22 +01:00
|
|
|
## Author
|
|
|
|
|
|
|
|
Yusuke Wada <https://github.com/yusukebe>
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
MIT
|