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
Name |
Last Commit
a9b9410c
–
Edited Command Hanlder, Using Run instead of Execute, Cute Command now complete
|
History
|
Last Update |
---|---|---|
.. | ||
index.js | Loading commit data... | |
license | Loading commit data... | |
package.json | Loading commit data... | |
readme.md | Loading commit data... |
Check if a number is a redirect HTTP status code
$ npm install --save is-redirect
var isRedirect = require('is-redirect');
isRedirect(302);
//=> true
isRedirect(200);
//=> false
MIT © Sindre Sorhus