# urgot **Repository Path**: apprat/urgot ## Basic Information - **Project Name**: urgot - **Description**: nodejs typescript开发框架 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-04-22 - **Last Updated**: 2023-11-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # installation ```shell npm i urgot ``` ## Hello World ```typescript import { Server } from 'urgot' const server = new Server() server.use(async (context, next) => { context.body = 'Hello World' await next() }) server.listen(5611) ``` Register middleware ```typescript server.use(async (context, next) => { const start = Date.now() await next() const ms = Date.now() - start context.setHeader('X-Response-Time', `${ms}ms`) context.body = 'Hello World' }) ``` Call next to execute after other middleware executes ```shell npx urgot dev ```