An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# A SOCKS5 proxy library for Deno


GitHub Workflow Status


GitHub release (latest by date)


Documentation


Dependencies


MIT License

## 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);
```