handle-response
v1.0.3
Published
This module allows easier/cleaner way to handle HTTP JSON response.
Downloads
2
Readme
ResponseHandler
This module allows easier/cleaner way to handle HTTP JSON response.
Installation
npm i -S handle-response
Usage
RH = require('handle-response');
(req, res) => doSomething(req).then(RH.handleSuccess(res)).catch(RH.handleError(res));