0.0.0 • Published 1 year ago

hyper-status v0.0.0

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

Hyper Status

A tiny package for http status code.

Getting Started

To tnstall Hyper Status in your project.

pnpm install hyper-status

Examples

import fastify from "fastify";
import hyperstatus from "hyper-status";

const server = await fastify();

server.get("/", (request, reply) => {
  reply
    .code(hyperstatus.HTTP_202_ACCEPTED)
    .send({ message: "Server is Okey" })
})

server.listen();