0.1.1 ⢠Published 8 months ago
srvx v0.1.1
š„ srvx
Universal Server API based on web platform standards. Works with Deno, Bun and Node.js.
- ā Seamless runtime integration with identical usage (handler and
- ā Zero overhead Deno and Bun support
- ā Node.js compatibility with ~native perf and fast response support
Quick start
import { serve } from "srvx";
const server = serve({
port: 3000,
fetch(request) {
return new Response("š Hello there!");
},
});
await server.ready();
console.log(`š Server ready at ${server.url}`);
š Visit the š Documentation to learn more.
Development
- Clone this repository
- Install the latest LTS version of Node.js
- Enable Corepack using
corepack enable
- Install dependencies using
pnpm install
- Run interactive tests using
pnpm dev
License
Published under the MIT license. Made by @pi0 and community š
š¤ auto updated with automd