@enlighten1/express-response-helper

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @enlighten1/express-response-helper

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

2.02 kB

Total Files

4

Last publish

Collaborators

  • enlighten1