@yangsansuan/h3
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

简版 http 框架 minimal http framework

Features

Usage

  1. 安装
pnpm i @yangsansuan/h3
  1. 使用
import { createServer } from "node:http";
import { createApp, eventHandler, toNodeListener } from "h3";

const app = createApp();
const router = createServer().get("/", eventHandler(() => "Hello world!"));
app.use(router);
createServer(toNodeListener(app)).listen(3000);

Readme

Keywords

none

Package Sidebar

Install

npm i @yangsansuan/h3

Weekly Downloads

1

Version

1.0.10

License

ISC

Unpacked Size

36.3 kB

Total Files

38

Last publish

Collaborators

  • yangsansuan