Skip to content

Promises #2

@zam6ak

Description

@zam6ak

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
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions