Skip to content
Myr

Fixed examples

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by Yusuke Wada · parent 3b339ec · Browse files · 5 files+31 added−53 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+31 added−53 removed

  • other:+31 added−53 removed

5 files+31 added−53 removed

modified:example/basic/index.js-43 removed
added:src/middleware/defaultFilter.js+19 added
deleted:src/middleware/filter.js-9 removed
modified:src/hono.js+1 added-1 removed
1'use strict'23const Node = require('./node')4const compose = require('./compose')5const defaultFilter = require('./middleware/filter')5const defaultFilter = require('./middleware/defaultFilter')67class Router {8 constructor() {9 this.node = new Node()
135 unmodified lines
modified:README.md+11 added
1 unmodified line
23Hono [炎] - Tiny web framework for Cloudflare Workers and others.45```js6const Hono = require('Hono')7const app = Hono()89app.get('/', () => new Response('Hono!!'))10
7 unmodified lines
18- Portable - zero dependencies.19- Flexible - you can make your own middlewares.20- Optimized - for Cloudflare Workers and Fastly Compute@Edge.2122## Benchmark2324```25hono x 813,001 ops/sec ±2.96% (75 runs sampled)26itty-router x 160,415 ops/sec ±3.31% (85 runs sampled)27sundar x 307,438 ops/sec ±4.77% (73 runs sampled)28Fastest is hono29✨ Done in 37.03s.30```3132## Install3334```35$ yarn add hono
142 unmodified lines