Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 274 Bytes

File metadata and controls

12 lines (10 loc) · 274 Bytes

winter-compat

A small WinterCG server compability layer for all runtimes.

import { serve } from 'winter-compat';

await serve(
  (req) => new Response(req.method + ' ' + req.url),
  // Default options (can be omitted)
  { port: 3000, hostname: '127.0.0.1' }
);