0.1.1 • Published 8 months ago

srvx v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

šŸ’„ srvx

npm version npm downloads

Universal Server API based on web platform standards. Works with Deno, Bun and Node.js.

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

0.1.1

8 months ago

0.1.0

8 months ago

0.0.0

9 months ago