blob: e9f0a393d2b972ae80cce8771c35474d254e58e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# is-redirect [![Build Status](https://travis-ci.org/sindresorhus/is-redirect.svg?branch=master)](https://travis-ci.org/sindresorhus/is-redirect)
> Check if a number is a [redirect HTTP status code](http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection)
## Install
```
$ npm install --save is-redirect
```
## Usage
```js
var isRedirect = require('is-redirect');
isRedirect(302);
//=> true
isRedirect(200);
//=> false
```
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)
|