
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
is-redirect
Advanced tools
Check if a number is a redirect HTTP status code
$ npm install is-redirect
import isRedirect from 'is-redirect';
isRedirect(302);
//=> true
isRedirect(200);
//=> false
The http-status-codes package provides a comprehensive list of HTTP status codes and their meanings. It can be used to check if a status code is a redirect by comparing it to known redirect codes. Unlike is-redirect, it offers a broader range of functionalities beyond just checking for redirects.
The statuses package provides a utility for looking up HTTP status codes and their descriptions. It can be used to determine if a status code is a redirect by checking against known redirect codes. This package is more general-purpose compared to is-redirect, which is specifically focused on redirect status codes.
FAQs
Check if a number is a redirect HTTP status code
The npm package is-redirect receives a total of 2,054,079 weekly downloads. As such, is-redirect popularity was classified as popular.
We found that is-redirect demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.