{"library":"is-redirect","type":"library","category":null,"description":"is-redirect is a lightweight, focused utility package for JavaScript and TypeScript environments that efficiently determines if a given numeric HTTP status code falls within the 3xx redirection range. The current stable version is 2.0.0. As part of Sindre Sorhus's collection of focused utilities, it follows a pragmatic release cadence, with major versions typically signaling significant breaking changes, such as the recent transition to pure ESM. Its primary differentiator is its singular focus and minimal footprint, providing a reliable, dependency-free check for redirect status codes without including additional HTTP client or server logic. It serves as a fundamental building block for applications that need to interpret HTTP responses, such as proxies, web scrapers, or API clients, ensuring correct handling of redirect flows.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","redirect","http","https","status","code","codes","is","check"],"last_verified":"Wed May 27","install":[{"cmd":"npm install is-redirect","imports":["import isRedirect from 'is-redirect';","const { default: isRedirect } = await import('is-redirect');","import type { IsRedirect } from 'is-redirect';"]},{"cmd":"yarn add is-redirect","imports":[]},{"cmd":"pnpm add is-redirect","imports":[]}],"homepage":null,"github":"https://github.com/sindresorhus/is-redirect","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/is-redirect","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/is-redirect/compatibility"}}