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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.00

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