Open zam6ak opened 8 years ago
Any plans on adding Promises to nodejs-client? Example:
var client = require("jsreport-client")(url, username, password); client .render({template: {...}}, {timeout: 1000}) .then( (response) => { return response.pipe(res); // res is Express response }) .catch((err) => { console.log(err); return next(err); //Express error handler });
You can always promisify it with your promise library, or not?
Any plans on adding Promises to nodejs-client? Example: