2.0.12 • Published 9 months ago
@scalar/void-server v2.0.12
Scalar Void Server
An Hono server that responds with the request data. Kind of a mirror for HTTP requests.
Installation
npm add @scalar/void-server
Usage
import { serve } from '@hono/node-server'
import { createVoidServer } from '@scalar/void-server'
// Create the server instance
const app = await createVoidServer()
// Start the server
serve(
{
fetch: app.fetch,
port: 3000,
},
(info) => {
console.log(`Listening on http://localhost:${info.port}`)
},
)
Community
We are API nerds. You too? Let’s chat on Discord: https://discord.gg/scalar
License
The source code in this repository is licensed under MIT.