You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-9Lines changed: 31 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,24 @@
1
1
# @nimpl/middleware-chain
2
2
3
-
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*)
3
+
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_)
@@ -18,7 +27,6 @@ Visit https://nimpl.tech/middleware-chain to view the full documentation.
18
27
## Installation
19
28
20
29
**Using npm:**
21
-
n the format of its API.
22
30
23
31
```bash
24
32
npm i @nimpl/middleware-chain
@@ -30,16 +38,30 @@ npm i @nimpl/middleware-chain
30
38
yarn add @nimpl/middleware-chain
31
39
```
32
40
41
+
## Motivation
42
+
43
+
All existing solutions work through their own APIs - made under the style of express or in their own vision. They are useful, well implemented, and convenient. But only in cases where you can update every used middleware.
44
+
45
+
However, there are many situations where you need to add already prepared solutions. Usually, in the issues of these solutions, you can find “support to add a chain package A, working with chain package B”.
46
+
47
+
This package follows a plug and play format. In the best traditions of the previous next.js.
48
+
49
+
This is not Koa and not Express, this is a package for next.js, in its unique style, in the format of its API.
0 commit comments