express-api-res

1.0.0 • Public • Published

api-response

Node.js api response uniform format returns middleware.

var express = require('express')
var bodyParser = require('api-response')

const app = express();
app.get("/success_text", function(req, res, next) {
   next(new apiResponse.SuccessResponse("OK"))
});

app.use(apiResponse.ResponseJson())

License

MIT

Dependents (0)

Package Sidebar

Install

npm i express-api-res

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

9.6 kB

Total Files

5

Last publish

Collaborators

  • jiangwei1995