# is-redirect

> Check if a number is a redirect HTTP status code

Latest version **2.0.0** (published 2021-04-17) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2021-04-17 |
| First published | 2015-06-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=12 |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 25 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | redirect, http, https, status, code, codes, is, check, detect |

## Links

- npm: https://www.npmjs.com/package/is-redirect
- Repository: https://github.com/sindresorhus/is-redirect
- Homepage: https://github.com/sindresorhus/is-redirect#readme
- Issues: https://github.com/sindresorhus/is-redirect/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/is-redirect

## 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

- 2.0.0 (latest) — 2021-04-17
- 1.0.0 — 2015-06-07

## README

# is-redirect

> Check if a number is a [redirect HTTP status code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection)

## Install

```
$ npm install is-redirect
```

## Usage

```js
import isRedirect from 'is-redirect';

isRedirect(302);
//=> true

isRedirect(200);
//=> false
```

## Related

- [is-server-error](https://github.com/arthurvr/is-server-error)
- [is-success](https://github.com/arthurvr/is-success)

---

<div align="center">
	<b>
		<a href="https://tidelift.com/subscription/pkg/npm-is-redirect?utm_source=npm-is-redirect&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
	</b>
	<br>
	<sub>
		Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
	</sub>
</div>

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