/opt/canhelp/node_modules/hono/dist
NameSizeModeActions
adapter/-0755rm
cjs/-0755rm
client/-0755rm
helper/-0755rm
jsx/-0755rm
middleware/-0755rm
preset/-0755rm
request/-0755rm
router/-0755rm
types/-0755rm
utils/-0755rm
validator/-0755rm
compose.js11610644editdlrm
context.js109160644editdlrm
hono-base.js112910644editdlrm
hono.js6100644editdlrm
http-exception.js9570644editdlrm
index.js690644editdlrm
request.js76930644editdlrm
router.js4330644editdlrm
tsconfig.build.tsbuildinfo780120644editdlrm
types.js770644editdlrm
Edit: /opt/canhelp/node_modules/hono/dist/hono.js (610B)
// src/hono.ts import { HonoBase } from "./hono-base.js"; import { RegExpRouter } from "./router/reg-exp-router/index.js"; import { SmartRouter } from "./router/smart-router/index.js"; import { TrieRouter } from "./router/trie-router/index.js"; var Hono = class extends HonoBase { /** * Creates an instance of the Hono class. * * @param options - Optional configuration options for the Hono instance. */ constructor(options = {}) { super(options); this.router = options.router ?? new SmartRouter({ routers: [new RegExpRouter(), new TrieRouter()] }); } }; export { Hono };