kaelum 1.4.2 → 1.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.
- package/README.md +11 -6
- package/index.js +1 -2
- package/index.mjs +2 -0
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -99,12 +99,17 @@ my-api-app/
|
|
|
99
99
|
|
|
100
100
|
## 🧩 Core API
|
|
101
101
|
|
|
102
|
-
> Kaelum exposes a factory — use `require(
|
|
103
|
-
|
|
104
|
-
```js
|
|
105
|
-
|
|
106
|
-
const
|
|
107
|
-
|
|
102
|
+
> Kaelum exposes a factory — use `require` (CommonJS) or `import` (ESM) to get an app instance:
|
|
103
|
+
|
|
104
|
+
```js
|
|
105
|
+
// CommonJS
|
|
106
|
+
const kaelum = require("kaelum");
|
|
107
|
+
const app = kaelum();
|
|
108
|
+
|
|
109
|
+
// ESM
|
|
110
|
+
import kaelum from "kaelum";
|
|
111
|
+
const app = kaelum();
|
|
112
|
+
```
|
|
108
113
|
|
|
109
114
|
### `app.setConfig(options)`
|
|
110
115
|
|
package/index.js
CHANGED
package/index.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kaelum",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "A minimalist Node.js framework for building web pages and APIs with simplicity and speed.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
7
|
-
".":
|
|
7
|
+
".": {
|
|
8
|
+
"import": "./index.mjs",
|
|
9
|
+
"require": "./index.js"
|
|
10
|
+
}
|
|
8
11
|
},
|
|
9
12
|
"bin": {
|
|
10
13
|
"kaelum": "cli/index.js"
|
|
11
14
|
},
|
|
12
15
|
"scripts": {
|
|
13
|
-
"test": "jest --verbose"
|
|
16
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --verbose"
|
|
14
17
|
},
|
|
15
18
|
"keywords": [
|
|
16
19
|
"framework",
|