# express-statuspage

> Get statuspage.io last incidents intro express

Latest version **1.0.0** (published 2014-05-23) · Apache 2 license · 0 weekly downloads

## Install

```sh
npm install express-statuspage
pnpm add express-statuspage
yarn add express-statuspage
bun add express-statuspage
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-05-23 |
| First published | 2014-05-23 |
| Weekly downloads | 0 |
| License | Apache 2 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+6 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Samy Pessé |
| Maintainers | samypesse |

## Links

- npm: https://www.npmjs.com/package/express-statuspage
- Repository: https://github.com/SamyPesse/express-statuspage
- Issues: https://github.com/SamyPesse/express-statuspage/issues
- npm.io page: https://npm.io/package/express-statuspage

## Dependencies (3)

- [q](https://npm.io/package/q.md) 1.0.1
- [lodash](https://npm.io/package/lodash.md) 2.4.1
- [request](https://npm.io/package/request.md) 2.36.0

## Recent versions

- 1.0.0 (latest) — 2014-05-23

## README

express-statuspage
==================

This node.js module is an **express** middleware that ley you get the last incident from your **statuspage.io** account to signal it directly to your user ony our website.

### Installation:

This module is on **NPM**:

```
$ npm install express-statuspage
```

### Example:

```js
var express = require('express');
var statuspage = require('express-statuspage');

var app = express();

app.use(statuspage({
    page: process.env.API_STATUSPAGE_PAGEID,
    key: process.env.API_STATUSPAGE_KEY,
    failedOnError: true
}))
app.get('/', function(req, res){
    if (!req.statuspage.currentIncident) {
        res.send('No incident!');
    } else {
        res.send("Current incient: "+req.statuspage.currentIncident.name)
    }
});

app.listen(3000);
```

---
_Source: https://npm.io/package/express-statuspage · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
