{"_id":"@d8d-localtunnel/server","_rev":"1-469dd99145bee41e924bf07d9fd26d40","name":"@d8d-localtunnel/server","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@d8d-localtunnel/server","version":"1.0.0","author":{"name":"D8D Cloud","email":"support@d8d.cloud"},"license":"MIT","_id":"@d8d-localtunnel/server@1.0.0","maintainers":[{"name":"zyh320888","email":"zyh320888@vip.qq.com"}],"homepage":"https://github.com/d8d-cloud/d8d-localtunnel#readme","bugs":{"url":"https://github.com/d8d-cloud/d8d-localtunnel/issues"},"bin":{"d8d-lt-server":"dist/bin/server.js"},"dist":{"shasum":"013c6cae80906cff4c013133841535a6b76714a0","tarball":"https://registry.npmjs.org/@d8d-localtunnel/server/-/server-1.0.0.tgz","fileCount":38,"integrity":"sha512-0yRDVdtKjp/aYqfK/KD4ZBaBMzBxZScT/nuc08FdgqQHMFoZePVzq3nFwTeoRwk4J9faWvrc7gDxzQ66M2I40A==","signatures":[{"sig":"MEUCIAUUUxN7icnyiu7SgJKJBvrvwgxWPNY73HOwYFDBh5A4AiEAzBZtZ32zjD4MnuctMWQz6TNFD8xqeHRm9OjY6n39ov4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":76809},"main":"./dist/server.js","types":"./dist/server.d.ts","gitHead":"b180ef58a6c1938e9b3ff74cb3dcae1f12eadd13","scripts":{"dev":"DEBUG=localtunnel,lt ts-node-dev src/bin/server.ts --port 23908 --domain 23908.dev.d8dcloud.com --secure https --tunnel-port 7002 --max-sockets 10","test":"jest","build":"tsc","start":"ts-node src/bin/server.ts","test:watch":"jest --watch","test:coverage":"jest --coverage"},"_npmUser":{"name":"zyh320888","email":"zyh320888@vip.qq.com"},"repository":{"url":"git://github.com/d8d-cloud/d8d-localtunnel.git","type":"git"},"_npmVersion":"9.8.1","description":"D8D LocalTunnel Server - Tunnel server for exposing localhost to the world","directories":{},"_nodeVersion":"18.18.2","dependencies":{"koa":"2.5.1","pump":"3.0.0","debug":"3.1.0","tldjs":"2.3.1","nanoid":"^3.3.7","winston":"^3.16.0","localenv":"0.2.2","optimist":"0.6.1","koa-router":"7.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ws":"5.1.1","jest":"^29.7.0","ts-jest":"^29.2.5","ts-node":"^10.9.1","@types/ws":"^8.5.4","supertest":"3.1.0","@types/koa":"^2.13.5","typescript":"^4.9.4","@types/jest":"^29.5.14","@types/node":"^18.11.18","@types/pump":"^1.1.1","ts-node-dev":"^2.0.0","@types/debug":"^4.1.7","@types/tldjs":"^2.3.1","@types/optimist":"^0.0.32","@types/supertest":"^6.0.2","@types/koa-router":"^7.4.4"},"_npmOperationalInternal":{"tmp":"tmp/server_1.0.0_1730771819247_0.719372210624525","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@d8d-localtunnel/server","description":"D8D LocalTunnel Server - Tunnel server for exposing localhost to the world","version":"1.0.1","license":"MIT","repository":{"type":"git","url":"git://github.com/d8d-cloud/d8d-localtunnel.git"},"author":{"name":"D8D Cloud","email":"support@d8d.cloud"},"main":"./dist/server.js","types":"./dist/server.d.ts","bin":{"d8d-lt-server":"dist/bin/server.js"},"scripts":{"build":"tsc","start":"ts-node src/bin/server.ts","dev":"DEBUG=localtunnel,lt ts-node-dev src/bin/server.ts --port 23908 --domain 23908.dev.d8dcloud.com --secure https --tunnel-port 7002 --max-sockets 10","test":"jest","test:watch":"jest --watch","test:coverage":"jest --coverage"},"dependencies":{"debug":"3.1.0","koa":"2.5.1","koa-router":"7.4.0","localenv":"0.2.2","nanoid":"^3.3.7","optimist":"0.6.1","pump":"3.0.0","tldjs":"2.3.1","winston":"^3.16.0"},"devDependencies":{"@types/debug":"^4.1.7","@types/jest":"^29.5.14","@types/koa":"^2.13.5","@types/koa-router":"^7.4.4","@types/node":"^18.11.18","@types/optimist":"^0.0.32","@types/pump":"^1.1.1","@types/supertest":"^6.0.2","@types/tldjs":"^2.3.1","@types/ws":"^8.5.4","jest":"^29.7.0","supertest":"3.1.0","ts-jest":"^29.2.5","ts-node":"^10.9.1","ts-node-dev":"^2.0.0","typescript":"^4.9.4","ws":"5.1.1"},"publishConfig":{"access":"public"},"_id":"@d8d-localtunnel/server@1.0.1","gitHead":"6cafb0797be42f5b74cc09a82327b95738e34bfb","bugs":{"url":"https://github.com/d8d-cloud/d8d-localtunnel/issues"},"homepage":"https://github.com/d8d-cloud/d8d-localtunnel#readme","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-RIH+b0oZ+nP0oZ68CvWrOAisk9LYK9RYXVOwWO6qXjgI5mbLX+IUUU+B3mMYSeG3Bml3CGPFyuFLBiWqJqph7g==","shasum":"3da1b8b76301cf2ccbfc4c170cf604e6426a058a","tarball":"https://registry.npmjs.org/@d8d-localtunnel/server/-/server-1.0.1.tgz","fileCount":38,"unpackedSize":76728,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICmdDBBgw9q31Tffo7tLHfRhOI5tM+Pl8R8kGr5cU2DLAiEAhEDKy7A32PAbTYgJy/n71Dnd5lTdfbs6FOzg0w4bIb4="}]},"_npmUser":{"name":"zyh320888","email":"zyh320888@vip.qq.com"},"directories":{},"maintainers":[{"name":"zyh320888","email":"zyh320888@vip.qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/server_1.0.1_1730774856435_0.17678422122727544"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-05T01:56:59.101Z","modified":"2024-11-05T02:47:36.790Z","1.0.0":"2024-11-05T01:56:59.431Z","1.0.1":"2024-11-05T02:47:36.596Z"},"bugs":{"url":"https://github.com/d8d-cloud/d8d-localtunnel/issues"},"author":{"name":"D8D Cloud","email":"support@d8d.cloud"},"license":"MIT","homepage":"https://github.com/d8d-cloud/d8d-localtunnel#readme","repository":{"type":"git","url":"git://github.com/d8d-cloud/d8d-localtunnel.git"},"description":"D8D LocalTunnel Server - Tunnel server for exposing localhost to the world","maintainers":[{"name":"zyh320888","email":"zyh320888@vip.qq.com"}],"readme":"# @d8d-localtunnel/server\n\nD8D LocalTunnel 服务端 - 隧道服务器\n\n## 安装\n\n```bash\nnpm install -g @d8d-localtunnel/server\n```\n\n## 使用\n\n```bash\nd8d-lt-server --port 23908 --domain 23908.dev.d8dcloud.com --secure https --tunnel-port 7002 --max-sockets 10\n```\n\n### 参数说明\n\n- `--port`: HTTP 服务端口\n- `--domain`: 域名\n- `--secure`: 使用 HTTPS\n- `--tunnel-port`: TCP 隧道端口\n- `--max-sockets`: 最大连接数\n\n## 开发\n\n```bash\n# 安装依赖\nnpm install\n# 开发模式\nnpm run dev\n# 构建\nnpm run build\n# 测试\nnpm run test\n```\n\n## API\n\n### 状态检查\n\nGET /api/status\n\n返回服务器状态信息。\n\n### 隧道状态\n\nGET /api/tunnels/:id/status\n\n返回特定隧道的状态信息。\n\n## License\n\nMIT\n","readmeFilename":"README.md"}