0.0.12 • Published 1 year ago
@bunsvr/core v0.0.12
The core server of BunSVR which aims to be fast.
import { App } from "@bunsvr/core";
// Create a new app
const app = new App();
// Use a middleware
app.use(async () => new Response("Hello world!"));
// Set port and hostname
app.port = 8080;
app.hostname = "127.0.0.1";
// Serve using bun
export default app;
See more examples here.