# is-success

> Check if a number is a HTTP success status code

Latest version **1.0.0** (published 2015-06-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-success
pnpm add is-success
yarn add is-success
bun add is-success
```

## 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 | 2015-06-10 |
| First published | 2015-06-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Arthur Verschaeve |
| Maintainers | arthurvr |
| Keywords | http, status, code, success, is, check, detect, codes |

## Links

- npm: https://www.npmjs.com/package/is-success
- Repository: https://github.com/arthurvr/is-success
- Homepage: https://github.com/arthurvr/is-success#readme
- Issues: https://github.com/arthurvr/is-success/issues
- npm.io page: https://npm.io/package/is-success

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-06-10

## README

# is-success [![Build Status](https://travis-ci.org/arthurvr/is-success.svg?branch=master)](https://travis-ci.org/arthurvr/is-success)

> Check if a number is [a HTTP success status code](http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#2xx_Success)


## Install

```
$ npm install --save is-success
```


## Usage

```js
var isSuccess = require('is-success');

isSuccess(200);
//=> true

isSuccess(400);
//=> false
```


## Related

* [is-redirect](https://github.com/sindresorhus/is-redirect)
* [is-server-error](https://github.com/arthurvr/is-server-error)

## License

MIT © [Arthur Verschaeve](http://arthurverschaeve.be)

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