fastify-uuid
v1.0.1
Published
A module for Fastify to Generate RFC-compliant UUIDs
Downloads
79
Maintainers
Readme
fastify-uuid
A module for Fastify to Generate RFC-compliant UUIDs
Usage/Examples
import fastify from 'fastify'
import fastifyUUID from 'fastify-uuid'
const app = fastify()
app.register(fastifyUUID)
app.get('/', () => {
return app.uuid.v4()
})
app.listen({ port: 8000 }, (err, address) => {
if (err) throw err
console.log(`server running on ${address}`)
})
API Reference
Read more at https://github.com/uuidjs/uuid