rtjscomp 0.9.1 → 0.9.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 +3 -0
- package/package.json +6 -6
- package/rtjscomp.js +39 -1349
package/README.md
CHANGED
|
@@ -33,6 +33,8 @@ $ npm start
|
|
|
33
33
|
|
|
34
34
|
it is only needed if you want to change default settings. it has the following properties:
|
|
35
35
|
|
|
36
|
+
- `gzip_level`: compression level, 0-9, default is 9
|
|
37
|
+
- `log_verbose`: boolean, set true for more verbose logging or run with -v
|
|
36
38
|
- `path_aliases`: object where the key is the url path and the value is the file path
|
|
37
39
|
- `path_ghosts`: array of paths that are simply ignored, no response is sent
|
|
38
40
|
- `path_hiddens`: array of paths that give 404
|
|
@@ -106,6 +108,7 @@ in every served dynamic file (like .html), you can insert `<?` and `?>` tags to
|
|
|
106
108
|
request-independent services can be created using .service.js files referenced in services.txt.
|
|
107
109
|
in both file types (dynamic served and services), you can use all node/bun methods including `require`, but also those:
|
|
108
110
|
|
|
111
|
+
- `log(msg)`: logs the message to the console
|
|
109
112
|
- `service_require(service path)`: returns the matching service object
|
|
110
113
|
- `service_require_try(service path)`: returns the matching service object or null if not found or if disabled
|
|
111
114
|
- `rtjscomp`: has these properties/methods:
|
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rtjscomp",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "php-like server but with javascript",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/L3P3/rtjscomp"
|
|
7
|
+
"url": "git+https://github.com/L3P3/rtjscomp.git"
|
|
8
8
|
},
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/L3P3/rtjscomp/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
+
"google-closure-compiler": "^20240317.0.0",
|
|
13
14
|
"ipware": "latest",
|
|
14
15
|
"parse-multipart-data": "latest",
|
|
15
16
|
"querystring": "latest"
|
|
16
17
|
},
|
|
17
18
|
"scripts": {
|
|
18
|
-
"start": "./rtjscomp.js"
|
|
19
|
-
|
|
20
|
-
"bin": {
|
|
21
|
-
"rtjscomp": "./rtjscomp.js"
|
|
19
|
+
"start": "./rtjscomp.js",
|
|
20
|
+
"build": "./build.js"
|
|
22
21
|
},
|
|
22
|
+
"bin": "./rtjscomp.js",
|
|
23
23
|
"keywords": [
|
|
24
24
|
"http",
|
|
25
25
|
"javascript",
|