Packages

hono

4.13.19 · 16 Nov 2026MIT113.6M / weekRepositoryHomepagenpmAtom feed

Your version

1.6.0

2 Jul 2022Where it was published

1.6.4 is the newest release of 1.x.

In short

2 new2 internal

Security

44 advisories affect 1.6.0; 4.13.16 fixes them

39 more

Release note

Summary

Now, Hono supports for Deno!! It's experimental but a super cool feature. You can import Hono from deno.land/x.

/** @jsx jsx */
import { serve } from 'https://deno.land/std@0.146.0/http/server.ts'
import { Hono, logger, poweredBy, basicAuth, jsx } from 'https://deno.land/x/hono/mod.ts'

const app = new Hono()

app.use('*', logger(), poweredBy())
app.get(
  '/auth/*',
  basicAuth({
    username: 'deno',
    password: 'isacool',
  })
)

app.get('/', (c) => {
  return c.html(<h1>Hello Deno!</h1>)
})
app.get('/auth/abc', (c) => c.text('You are authorized'))

serve(app.fire())

What's Changed

  • context: Type JSON object as generic var T

  • Support for Deno!

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.