response-formater
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

This repository is fork from https://www.npmjs.com/package/responseFormater

Usage is similar, just customize response a little for personal using

The diffrent is the name of the package:

import responseFormater from 'response-formater'
import express, { Request, Response } from 'express'
const app = express()
const router = express.Router()
app.use(responseFormater) // add responseFormater middleware
app.use(router)

router.get('/hello', (req: Request, res: Response) => {
  res.send_badRequest('Request is wrong!')
})

response-formater

Readme

Keywords

none

Package Sidebar

Install

npm i response-formater

Weekly Downloads

22

Version

1.0.2

License

ISC

Unpacked Size

12.1 kB

Total Files

6

Last publish

Collaborators

  • chabuuuu