fightertunnel 1.0.5 → 1.1.5
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 +8 -67
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,73 +1,14 @@
|
|
1
|
-
#
|
1
|
+
# API VPN Management
|
2
2
|
|
3
|
-
|
4
|
-

|
5
|
-

|
3
|
+
API ini menyediakan endpoint untuk membuat akun VPN seperti SSH, Trojan, VLESS, dan Shadowsocks.
|
6
4
|
|
7
|
-
|
5
|
+
## Dokumentasi Lengkap
|
8
6
|
|
9
|
-
|
7
|
+
Dokumentasi lengkap API tersedia di Postman:
|
8
|
+
[API VPN Management - Postman Documentation](https://documenter.getpostman.com/view/29104234/2sAYQdi9Wx)
|
10
9
|
|
11
|
-
##
|
10
|
+
## Kontribusi & Lisensi
|
12
11
|
|
13
|
-
- **
|
14
|
-
- **
|
15
|
-
- **Delete Account**: Remove accounts that are no longer needed.
|
16
|
-
- **Update Account**: Update information of existing accounts.
|
12
|
+
- **Kontribusi**: Silakan buat pull request atau laporkan masalah.
|
13
|
+
- **Lisensi**: MIT.
|
17
14
|
|
18
|
-
## Installation
|
19
|
-
|
20
|
-
To install the Fightertunnel module, use the following command:
|
21
|
-
|
22
|
-
```bash
|
23
|
-
npm i fightertunnel
|
24
|
-
```
|
25
|
-
|
26
|
-
## Usage
|
27
|
-
|
28
|
-
Here is an example of using the FighterTunnel module to create an SSH account:
|
29
|
-
|
30
|
-
### SSH
|
31
|
-
```javascript
|
32
|
-
const { createSSH } = require('fightertunnel');
|
33
|
-
createSSH('username', 'password', 'exp', 'limitip', (err, result) => {
|
34
|
-
if (err) {
|
35
|
-
console.error(err);
|
36
|
-
} else {
|
37
|
-
console.log(result);
|
38
|
-
}
|
39
|
-
});
|
40
|
-
```
|
41
|
-
|
42
|
-
### VMESS
|
43
|
-
```javascript
|
44
|
-
const { createVMess } = require('fightertunnel');
|
45
|
-
function createVMessAccount(username, expiry, quota, iplimit) {
|
46
|
-
createVMess(username, expiry, quota, iplimit, (err, result) => {
|
47
|
-
if (err) {
|
48
|
-
console.error('Error occurred:', err);
|
49
|
-
} else {
|
50
|
-
console.log('VMess account created successfully:', result);
|
51
|
-
}
|
52
|
-
});
|
53
|
-
}
|
54
|
-
createVMessAccount('user123', '1', '1', '1');
|
55
|
-
```
|
56
|
-
|
57
|
-
## Auto Script Link
|
58
|
-
|
59
|
-
For more information and auto scripts, visit our GitHub repository:
|
60
|
-
[https://github.com/FighterTunnel/tunnel](https://github.com/FighterTunnel/tunnel)
|
61
|
-
|
62
|
-
## API
|
63
|
-
|
64
|
-
For more information about our API, visit:
|
65
|
-
[https://github.com/AutoFTbot/Api/](https://github.com/AutoFTbot/Api/)
|
66
|
-
|
67
|
-
## Contribution
|
68
|
-
|
69
|
-
We welcome contributions from anyone. Please make a pull request or open an issue for further discussion.
|
70
|
-
|
71
|
-
## License
|
72
|
-
|
73
|
-
This project is licensed under the MIT License.
|