Skip to content

mdmahikaishar/hyper-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();