https://github.com/rclarey/socks5
SOCKS5 proxy library for Deno
https://github.com/rclarey/socks5
deno proxy socks socks-proxy socks5 socks5-proxy
Last synced: 8 months ago
JSON representation
SOCKS5 proxy library for Deno
- Host: GitHub
- URL: https://github.com/rclarey/socks5
- Owner: rclarey
- License: mit
- Created: 2022-03-07T12:38:19.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-23T08:20:40.000Z (over 4 years ago)
- Last Synced: 2025-07-08T19:12:24.552Z (12 months ago)
- Topics: deno, proxy, socks, socks-proxy, socks5, socks5-proxy
- Language: TypeScript
- Homepage: https://deno.land/x/socks5
- Size: 26.4 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A SOCKS5 proxy library for Deno
## Features
- Supported commands
- ✅ CONNECT
- ❌ BIND
- ✅ UDP ASSOCIATE
- Supported authentication methods
- No authentication
- Username & password
## Usage
```typescript
import { Client } from "https://deno.land/x/socks5/client.ts";
const config = {
// hostname of the proxy server
hostname: "my-proxy-server.example",
// optional, port of the proxy server. defaults to 1080
port: 1234,
// optional, username and password to authenticate. not required if
// the server supports using no authentication
username: "my_name",
password: "my_password",
};
const client = new Client(config);
// now you can replace
Deno.connect(connectOpts);
// with
client.connect(connectOpts);
// and you can replace
Deno.listenDatagram(listenOpts);
// with
client.listenDatagram(listenOpts);
```