cpeak 2.4.2 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -52,7 +52,7 @@ Cpeak is a **pure ESM** package, and to use it, your project needs to be an ESM
52
52
  ```javascript
53
53
  import cpeak from "cpeak";
54
54
 
55
- const server = new cpeak();
55
+ const server = cpeak();
56
56
 
57
57
  server.route("get", "/", (req, res) => {
58
58
  res.json({ message: "Hi there!" });
@@ -84,7 +84,7 @@ import cpeak, { serveStatic, parseJSON } from "cpeak";
84
84
  Initialize the Cpeak server like this:
85
85
 
86
86
  ```javascript
87
- const server = new cpeak();
87
+ const server = cpeak();
88
88
  ```
89
89
 
90
90
  Now you can use this server object to start listening, add route logic, add middleware functions, and handle errors.
@@ -360,7 +360,7 @@ Here you can see all the features that Cpeak offers, in one small piece of code:
360
360
  ```javascript
361
361
  import cpeak, { serveStatic, parseJSON, render } from "cpeak";
362
362
 
363
- const server = new cpeak();
363
+ const server = cpeak();
364
364
 
365
365
  server.beforeEach(
366
366
  serveStatic("./public", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cpeak",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "A minimal and fast Node.js HTTP framework.",
5
5
  "type": "module",
6
6
  "scripts": {