trello-report-js
Report messages to trello!
Last updated 2 years ago by raphaelkielingtondin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install trello-report-js 
SYNC missed versions from official npm registry.

Trello Report

Report messages to trello!

Travis CI

Coverage Status

Example with middleware and function createCard

const server = require("express")();
const trelloReport = require("../lib/trello_report");

let trelloReportMiddleware = new trelloReport({
  your_key: "YOUR_KEY",
  token: "YOUR_TOKEN",
  id_list: "ID_LIST"
});

server.get("", async (req, res) => {
  try {
    throw new Error("Server error");
  } catch (e) {
    trelloReportMiddleware
      .createCard("Erro no get do software")
      .then(console.log("Card sended"));

    res.status(500).send("ERROR");
  }
});

server.use(trelloReportMiddleware.middleware);

server.listen(3000, () => console.log("listen in 3000"));

Installation

Current Tags

  • 1.0.4                                ...           latest (2 years ago)

5 Versions

  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 2
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |