You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Michael Winter 555e2c196e initial commit 5 years ago
..
index.js initial commit 5 years ago
license initial commit 5 years ago
package.json initial commit 5 years ago
readme.md initial commit 5 years ago

readme.md

is-redirect Build Status

Check if a number is a redirect HTTP status code

Install

$ npm install --save is-redirect

Usage

var isRedirect = require('is-redirect');

isRedirect(302);
//=> true

isRedirect(200);
//=> false

License

MIT © Sindre Sorhus