/
opt
/
alt
/
alt-nodejs11
/
root
/
lib
/
node_modules
/
npm
/
node_modules.bundled
/
is-redirect
/
Upload Filee
HOME
# 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)