File: readme.md

package info (click to toggle)
node-is-redirect 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 104 kB
  • sloc: makefile: 2; sh: 2
file content (28 lines) | stat: -rw-r--r-- 509 bytes parent folder | download
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)