@tsq/express-response
v1.0.5
Published
A response middleware of express
Downloads
2
Readme
express-response
response middleware for Express
Install
npm i @tsq/express-response
Usage
const express = require('express');
const expressResponse = require('@tsq/express-response');
const app = express();
app.use(expressResponse);
API
res.ok(); // 200
res.invalid(); // 400
res.unAuth(); // 401
res.forbidden(); // 403
res.notFound(); // 404
res.error(); // 500