hono 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -1
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
# hono
|
|
2
|
+
|
|
3
|
+
Minimal web framework for Cloudflare Workers.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
$ yarn add hono
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
or
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
$ npm install hono
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Hello hono!
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
const Hono = require("hono");
|
|
21
|
+
const app = Hono();
|
|
22
|
+
|
|
23
|
+
app.get("/", () => new Response("Hono!!"));
|
|
24
|
+
|
|
25
|
+
app.fire(); // call `addEventListener`
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Then, run `wrangler dev`.
|
|
2
29
|
|
|
3
30
|
## Author
|
|
4
31
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hono",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Minimal web framework for Cloudflare Workers",
|
|
5
5
|
"main": "src/hono.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
},
|
|
9
9
|
"author": "Yusuke Wada <yusuke@kamawada.com> (https://github.com/yusukebe)",
|
|
10
10
|
"license": "MIT",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/yusukebe/hono.git"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://github.com/yusukebe/hono",
|
|
11
16
|
"devDependencies": {
|
|
12
17
|
"jest": "^27.4.5",
|
|
13
18
|
"node-fetch": "^2.6.6"
|