pb-responses-handler
v1.1.0
Published
Handler de estructuras de respuestas
Downloads
51
Readme
Responses Handler
Provee métodos que devuelven una estructura de respuesta para los casos de success, info, warning y error
Instalación
npm i pb-responses-handler
Uso
importe el paquete y llame a los métodos success, info, warning y error pasando como argumentos opcionales message y content
const responsesHandler = require('pb-responses-handler');
responsesHandler.success("", result)
responsesHandler.error("Ocurrió un problema interno")