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