whats an extremely lightweight, fast socks5 server?
- User
whats an extremely lightweight, fast socks5 server?
- Assistant
"socks5-proxy-server": "1.0.0"
"dependencies": { "express": "^4.17.1", "chokidar": "^4.1.2" } }
// server.js const express = require('express'); const chokidar = require('chokidar'); const app = express(); const port = 3000;
app.use(express.json());
app.post('/watch', (req, res) => { const { file, path } = req.body; chokidar.watch(path).on('change', (event, filename) => { if (event === 'add') { console.log(
File ${filename} has been added.); } });res.status(200).send('File watcher has been started.'); });
app.listen(port, () => { console.log(
Socks5 server listening at http://localhost:${port}); }// Usage // npm install -g typescript // tsc --init // npm install --save-dev @types/node @types/chokidar // npm install
// Compile TypeScript to JavaScript // tsc
// Run the server // node server.js
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.