Skip to content

Chain of native next.js middlewares without any modifications (i.e., you can add any ready-made middleware to the chain)

License

Notifications You must be signed in to change notification settings

shlyamster/nimpl-middleware-chain

 
 

Repository files navigation

@nimpl/middleware-chain

The package allows you to create a chain of native next.js middlewares without any modifications (i.e., you can add any ready-made middleware to the chain)

// middleware.ts
import { chain } from "@nimpl/middleware-chain";

export default chain([
    intlMiddleware,
    authMiddleware,
    customMiddleware,
]);

Visit https://nimpl.tech/middleware-chain to view the full documentation.

Installation

Using npm: n the format of its API.

npm i @nimpl/middleware-chain

Using yarn:

yarn add @nimpl/middleware-chain

Examples

Additional

Please consider giving a star if you like it, it shows that the package is useful and helps continue work on this and other packages.

Create issues for identified issues, desired getters, or various improvements.

License

MIT

About

Chain of native next.js middlewares without any modifications (i.e., you can add any ready-made middleware to the chain)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.5%
  • JavaScript 7.5%