@enlighten1/express-response-helper
v1.0.0
Published
Classic Node.js resH now on npm!
Downloads
1
Readme
enl-express-response-helper
Z JS Docs:
/**
* Creates and sends the response of the HTTP request to the client encapsulated in envelope. Takes the 'res' argument and uses it to actually send the request.
* @param {*} res - The 'res' object of Express
* @param {Object} data - Data to be sent
* @param {Boolean} success - If the request was successful or not. Defaults to 'true'.
* @param {*} code - The HTTP code of the request. Default is 200.
* @param {String} message - Optional message string of the response's envelope.
*/