1.0.0 • Published 3 years ago

@enlighten1/express-response-helper v1.0.0

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
3 years ago

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.
 */
1.0.0

3 years ago