mirror of
https://github.com/bvanroll/yahoo-thing.git
synced 2025-08-29 20:12:46 +00:00
509 B
509 B
is-redirect 
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