# popsicle-status

> Popsicle middleware for rejecting responses with bad HTTP statuses

Latest version **3.0.0** (published 2019-06-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install popsicle-status
pnpm add popsicle-status
yarn add popsicle-status
bun add popsicle-status
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2019-06-09 |
| First published | 2014-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Blake Embrey |
| Maintainers | blakeembrey |
| Keywords | popsicle, plugin, status, http, response |

## Links

- npm: https://www.npmjs.com/package/popsicle-status
- Repository: https://github.com/blakeembrey/popsicle-status
- Issues: https://github.com/blakeembrey/popsicle-status/issues
- npm.io page: https://npm.io/package/popsicle-status

## Recent versions

- 3.0.0 (latest) — 2019-06-09
- 2.0.1 — 2017-05-23
- 2.0.0 — 2016-05-08
- 1.0.2 — 2016-04-01
- 1.0.1 — 2016-02-06
- 1.0.0 — 2016-01-10
- 0.2.2 — 2015-11-02
- 0.2.1 — 2015-11-01
- 0.2.0 — 2015-10-03
- 0.1.1 — 2015-05-24
- 0.1.0 — 2015-03-07
- 0.0.2 — 2015-02-16
- 0.0.1 — 2014-12-11

## README

# Popsicle Status

[![NPM version][npm-image]][npm-url]
[![NPM downloads][downloads-image]][downloads-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]

Popsicle middleware for rejecting responses with bad HTTP statuses.

## Installation

```
npm install popsicle-status --save
```

## Usage

```js
import { status } from "popsicle-status";

const middleware = status();

const res = await middleware(req, send);
```

### **status(min?: number, max?: number)**

Default status codes of min `200` (inclusive) and max `400` (exclusive).

## TypeScript

This project is written using [TypeScript](https://github.com/Microsoft/TypeScript) and publishes the definitions directly to NPM.

## License

MIT

[npm-image]: https://img.shields.io/npm/v/popsicle-status.svg?style=flat
[npm-url]: https://npmjs.org/package/popsicle-status
[downloads-image]: https://img.shields.io/npm/dm/popsicle-status.svg?style=flat
[downloads-url]: https://npmjs.org/package/popsicle-status
[travis-image]: https://img.shields.io/travis/blakeembrey/popsicle-status.svg?style=flat
[travis-url]: https://travis-ci.org/blakeembrey/popsicle-status
[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/popsicle-status.svg?style=flat
[coveralls-url]: https://coveralls.io/r/blakeembrey/popsicle-status?branch=master

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