JSPM

is-redirect

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1892284
  • Score
    100M100P100Q186565F
  • License MIT

Check if a number is a redirect HTTP status code

Package Exports

  • is-redirect

Readme

is-redirect

Check if a number is a redirect HTTP status code

Install

$ npm install is-redirect

Usage

import isRedirect from 'is-redirect';

isRedirect(302);
//=> true

isRedirect(200);
//=> false

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.