is-redirect
Check if a number is a redirect HTTP status code
Last updated 5 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-redirect 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (5 years ago)

1 Versions

  • 1.0.0                                ...           5 years ago

Copyright 2014 - 2016 © taobao.org |