1.0.2 • Published 1 year ago

fastify-dayjs v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

fastify-dayjs

Fastify plugin to add dayjs support

Usage/Examples

import path from 'path'
import fastify from 'fastify'
import fastifyDayjs from 'fastify-dayjs'

const app = fastify()
app.register(fastifyDayjs)

app.get('/', () => {
  return app.dayjs().format()
})

app.listen({ port: 8000 }, (err, address) => {
  if (err) throw err
  console.log(`server running on ${address}`)
})

API Reference

Read more at https://day.js.org/