Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Latest commit

 

History

History
41 lines (32 loc) · 1.95 KB

File metadata and controls

41 lines (32 loc) · 1.95 KB

DEPRECATED! Use npm:@tinyhttp/app directly

nest badge GitHub Workflow Status Codecov Dependency count

This is a Deno port of tinyhttp, 0-legacy, tiny & fast web framework as a replacement of Express.

Example

import { App } from 'https://deno.land/x/tinyhttp/app.ts'

const app = new App()

app.get('/:name/', async (req, res) => {
  await res.send(
    `Hello on ${req.url} from Deno v${Deno.version.deno} and tinyhttp! 🦕`,
  )
})

app.listen(3000, () => console.log(`Started on :3000`))