2.2.0 • Published 5 months ago
@scalar/void-server v2.2.0
Scalar Void Server
An Hono server that responds with the request data. Kind of a mirror for HTTP requests.
It’s running on https://void.scalar.com, feel free to use it.
Examples
- https://void.scalar.com/
- https://void.scalar.com/404
- https://void.scalar.com/foobar.html
- https://void.scalar.com/foobar.json
- https://void.scalar.com/foobar.xml
- https://void.scalar.com/foobar.zip
- https://void.scalar.com/?foo=bar&foo=rab
Installation
npm add @scalar/void-serverUsage
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.
2.0.17
8 months ago
2.0.15
8 months ago
2.2.0
5 months ago
2.1.1
6 months ago
2.0.13
12 months ago
2.0.14
12 months ago
2.1.0
7 months ago
2.0.12
1 year ago
2.0.11
1 year ago
2.0.10
1 year ago
2.0.9
1 year ago
2.0.8
1 year ago
2.0.7
1 year ago
2.0.6
1 year ago
2.0.5
1 year ago
2.0.4
1 year ago
2.0.3
1 year ago
2.0.2
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago