@eooce/idx 1.0.0 → 1.0.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 (4) hide show
  1. package/LICENSE +19 -1339
  2. package/index.js +1043 -1001
  3. package/package.json +2 -2
  4. package/README.md +0 -64
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eooce/idx",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "description": "@eooce/idx",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -45,4 +45,4 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  }
48
- }
48
+ }
package/README.md DELETED
@@ -1,64 +0,0 @@
1
- # @eooce/idx
2
-
3
- A lightweight Node.js project for executing backend services or network requests tasks with support for HTTP requests, environment variable management, and basic web services.
4
-
5
- ## Features
6
-
7
- - Start local Node.js service (via express)
8
- - Send HTTP requests (via axios)
9
- - Load environment configuration files (via dotenv)
10
- - Support for Node.js 14 and above
11
- - Quick start with `npm start`
12
-
13
- ## Installation
14
-
15
- ```bash
16
- npm install @eooce/idx
17
- ```
18
-
19
- ## Usage
20
-
21
- ```javascript
22
- // Require the package
23
- const idx = require('@eooce/idx');
24
-
25
- // Start the service
26
- idx.start();
27
- ```
28
-
29
- Or run directly from the command line:
30
-
31
- ```bash
32
- npx @eooce/idx
33
- ```
34
-
35
- ## Environment Variables
36
-
37
- The following environment variables can be configured:
38
-
39
- - `UPLOAD_URL`: Subscription or node auto-upload address
40
- - `PROJECT_URL`: Project assigned URL for subscription upload or keep-alive
41
- - `AUTO_ACCESS`: false to disable auto keep-alive, true to enable
42
- - `YT_WARPOUT`: true to force WARP outbound for YouTube, false for auto-detection
43
- - `FILE_PATH`: Subscription file path (default: './.npm')
44
- - `SUB_PATH`: Subscription path (default: 'sub')
45
- - `UUID`: UUID for different platform operation (default: 'f8e6d3d3-dad7-427e-8a72-8ca1f03a59e2')
46
- - `NEZHA_SERVER`: Nezha panel address
47
- - `NEZHA_PORT`: Nezha agent port
48
- - `NEZHA_KEY`: Nezha client secret or agent key
49
- - `ARGO_DOMAIN`: Argo tunnel domain
50
- - `ARGO_AUTH`: Argo tunnel token or JSON
51
- - `ARGO_PORT`: Argo tunnel port (default: 8001)
52
- - `TUIC_PORT`: TUIC port
53
- - `HY2_PORT`: Hysteria2 port
54
- - `REALITY_PORT`: Reality port
55
- - `CFIP`: Preferred domain or IP (default: 'cf.877774.xyz')
56
- - `CFPORT`: Preferred domain or IP port (default: 443)
57
- - `PORT`: HTTP subscription port (default: 3000)
58
- - `NAME`: Node name (default: 'Idx')
59
- - `CHAT_ID`: Telegram chat_id
60
- - `BOT_TOKEN`: Telegram bot_token
61
-
62
- ## License
63
-
64
- AGPL-3.0-only