popsicle-redirects
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

Popsicle Redirects

NPM version NPM downloads Build status Build coverage

Popsicle middleware for following HTTP redirects.

Installation

npm install popsicle-redirects --save

Usage

import { redirects } from "popsicle-redirects";

const middleware = redirects(transport());

Options

  • fn Wrap a throwback compatible middleware function in redirect behavior
  • maxRedirects Set the maximum number of redirects to attempt before throwing an error (default: 5)
  • confirmRedirect Confirmation function for following 307 and 308 non-idempotent redirects (default: () => false)

TypeScript

This project is written using TypeScript and publishes the definitions directly to NPM.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    132,037
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    132,037
  • 1.1.0
    77,840
  • 1.0.1
    5
  • 1.0.0
    4

Package Sidebar

Install

npm i popsicle-redirects

Weekly Downloads

87,934

Version

1.1.1

License

MIT

Unpacked Size

14.9 kB

Total Files

6

Last publish

Collaborators

  • blakeembrey