{
  "_id": "is-redirect",
  "maintainers": [
    {
      "name": "sindresorhus",
      "email": "sindresorhus@gmail.com"
    }
  ],
  "keywords": [
    "redirect",
    "http",
    "https",
    "status",
    "code",
    "codes",
    "is",
    "check",
    "detect"
  ],
  "dist-tags": {
    "latest": "2.0.0"
  },
  "author": {
    "name": "Sindre Sorhus",
    "email": "sindresorhus@gmail.com",
    "url": "https://sindresorhus.com"
  },
  "_rev": "6-e1ccb3126fd7d1ff69a60bdc6050f105",
  "description": "Check if a number is a redirect HTTP status code",
  "readme": "# is-redirect\n\n> Check if a number is a [redirect HTTP status code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection)\n\n## Install\n\n```\n$ npm install is-redirect\n```\n\n## Usage\n\n```js\nimport isRedirect from 'is-redirect';\n\nisRedirect(302);\n//=> true\n\nisRedirect(200);\n//=> false\n```\n\n## Related\n\n- [is-server-error](https://github.com/arthurvr/is-server-error)\n- [is-success](https://github.com/arthurvr/is-success)\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-is-redirect?utm_source=npm-is-redirect&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/sindresorhus/is-redirect.git"
  },
  "users": {
    "rocket0191": true
  },
  "bugs": {
    "url": "https://github.com/sindresorhus/is-redirect/issues"
  },
  "license": "MIT",
  "versions": {
    "1.0.0": {
      "name": "is-redirect",
      "version": "1.0.0",
      "description": "Check if a number is a redirect HTTP status code",
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/sindresorhus/is-redirect"
      },
      "author": {
        "name": "Sindre Sorhus",
        "email": "sindresorhus@gmail.com",
        "url": "sindresorhus.com"
      },
      "engines": {
        "node": ">=0.10.0"
      },
      "scripts": {
        "test": "node test.js"
      },
      "files": [
        "index.js"
      ],
      "keywords": [
        "redirect",
        "http",
        "https",
        "status",
        "code",
        "codes",
        "is",
        "check",
        "detect"
      ],
      "devDependencies": {
        "ava": "0.0.4"
      },
      "gitHead": "53bc816ba54447a55676930138151feb0f917c18",
      "bugs": {
        "url": "https://github.com/sindresorhus/is-redirect/issues"
      },
      "homepage": "https://github.com/sindresorhus/is-redirect",
      "_id": "is-redirect@1.0.0",
      "_shasum": "1d03dded53bd8db0f30c26e4f95d36fc7c87dc24",
      "_from": ".",
      "_npmVersion": "2.10.1",
      "_nodeVersion": "0.12.4",
      "_npmUser": {
        "name": "sindresorhus",
        "email": "sindresorhus@gmail.com"
      },
      "dist": {
        "shasum": "1d03dded53bd8db0f30c26e4f95d36fc7c87dc24",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/is-redirect/-/is-redirect-1.0.0.tgz",
        "integrity": "sha512-cr/SlUEe5zOGmzvj9bUyC4LVvkNVAXu4GytXLNMr1pny+a65MpQ9IJzFHD5vi7FyJgb4qt27+eS3TuQnqB+RQw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQD6IS1hlzFgM4kfn0c6ZigTZz6NCGUFOiatW8j8x1PfigIhAJHxMOu2MyAXupkrz/UhGiya9Uy7aa/2uWmjC0FpUtR1"
          }
        ]
      },
      "maintainers": [
        {
          "name": "sindresorhus",
          "email": "sindresorhus@gmail.com"
        }
      ],
      "directories": {}
    },
    "2.0.0": {
      "name": "is-redirect",
      "version": "2.0.0",
      "description": "Check if a number is a redirect HTTP status code",
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/sindresorhus/is-redirect.git"
      },
      "funding": "https://github.com/sponsors/sindresorhus",
      "author": {
        "name": "Sindre Sorhus",
        "email": "sindresorhus@gmail.com",
        "url": "https://sindresorhus.com"
      },
      "type": "module",
      "exports": "./index.js",
      "engines": {
        "node": ">=12"
      },
      "scripts": {
        "test": "xo && ava"
      },
      "keywords": [
        "redirect",
        "http",
        "https",
        "status",
        "code",
        "codes",
        "is",
        "check",
        "detect"
      ],
      "devDependencies": {
        "ava": "^3.15.0",
        "xo": "^0.38.2"
      },
      "gitHead": "fc830a8b69a02c0693b6fbd21254cf90c445ffb0",
      "bugs": {
        "url": "https://github.com/sindresorhus/is-redirect/issues"
      },
      "homepage": "https://github.com/sindresorhus/is-redirect#readme",
      "_id": "is-redirect@2.0.0",
      "_nodeVersion": "12.22.1",
      "_npmVersion": "6.14.10",
      "_npmUser": {
        "name": "sindresorhus",
        "email": "sindresorhus@gmail.com"
      },
      "dist": {
        "integrity": "sha512-LEbfx8sJ7tUYOZ46D2Bbs+HIGKxLAaPYV7V+WGpNV16I4+oCHw7+SpEnjNpBb3ms5LV46IYwPdb7I8YQy4PN4Q==",
        "shasum": "b10e6f27a830694ac81e6767e1aba5f88c96f392",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/is-redirect/-/is-redirect-2.0.0.tgz",
        "fileCount": 4,
        "unpackedSize": 2921,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeo7pCRA9TVsSAnZWagAAWrYP/1ipyz9bZgkwTaNNIjp5\n0Byhll1byq5O+7ebnomel7ss8Ozk3RKj4Kkj6JaXew0RKP0Yjjfy0i4jw9yu\nm4e5REHwFi2kPKNfS1VkEoQB+fynYctiusLu0CDeYqcmMlSRVjRwDrxXEa3K\nsS9HGH8fEheTvw7DISypVqqk0uXwmowrjjwxDRq2SQHAZvUiTPSzWP/J8v3F\n81PuV4KwsWF9jEcc3ROdI+k22ayv2FL8wO2bmMllMfq0ZoSAyGTRyvGVF8Ng\nMG5P0Vvc6hjfCYD65ar7bOy+rB6y433A5F7kIbBTWvvyjlKMGpeBnUErVMkG\nN5VjvfOqPYi6jA/xHU5b+2eawH8ycf9q8+ZhUCqrF9N7oDkmtvscJswLmnnZ\nIyCJQcLIIkUcDpTTk1hfsxbceYpbOaklxCbZVJw/2dVsaJAl7bnP8MTmupnj\nA41BMmyuKs4Ox2pHDtgA6lZjInBPAtJ4utHG0qJR4MUgUvqj2BYrOyAC9K+I\n+DqQ3/f6bZTJxnwd5mvCq98PzcB3DF2F8qB/Z15/DGJP+1rQs1Unjfpd/K7/\nWj7tEDeg2fmHBBhH/afjwSxqJHIDyvqDdKKgPAkhF2npmB6tZ9Uba6ndQPMd\n8iMTd+x1K9LATOhiK6aIb65u5bJWcQC+zvaxH5zys82mRUEzR5X4JEFcI/QL\nWTRI\r\n=Y107\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCICv4TRrModJrOlvctUY4c0ktgJM2VzHtF9V6ifq5HAD4AiEA1qWulbL05GCiAkCXBG1nkWurvxgvKZL/frHZZIytESY="
          }
        ]
      },
      "directories": {},
      "maintainers": [
        {
          "name": "sindresorhus",
          "email": "sindresorhus@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/is-redirect_2.0.0_1618644712633_0.8924919327919172"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "is-redirect",
  "time": {
    "modified": "2026-05-25T06:26:19.694Z",
    "created": "2015-06-07T15:57:39.755Z",
    "1.0.0": "2015-06-07T15:57:39.755Z",
    "2.0.0": "2021-04-17T07:31:52.747Z"
  },
  "readmeFilename": "readme.md",
  "homepage": "https://github.com/sindresorhus/is-redirect#readme"
}