Skip to main content
Deno 2 is finally here 🎉️
Learn more

darkflare

Warning: darkflare v5 MAY contain minor bugs as of now and we still need to update the docs. So until this warning is removed from the readme, just use the v4 or play with the v5.

Setup

Install CLI

deno install -n darkflare --allow-all https://deno.gg/darkflare@v5.0.2/cli

Update CLI

deno install -n darkflare -f --allow-all https://deno.gg/darkflare@v5.0.2/cli

Usage

import { Get, v } from 'https://deno.gg/darkflare@v5.0.2'

Get({
  query: v.object({
    name: v.string()
  })
}, ({ req }) => {
  return `hey ${req.query.name}`
})