Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

socks5-proxy

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socks5-proxy

A Socket 5 Server

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

Socks5 Proxy

socks5-proxy It is a proxy service that supports user authentication.

Install

npm install socks5-proxy --save

Example

import { Socket5Server } from 'socks5-proxy';
import * as net from 'net';

const app = new Socket5Server({
  host: '127.0.0.1',
  port: 1080,
  auth: {
    user: 'admin',
    pass: '123456'
  }
});

app.listen((client) => {
  const socket = net.connect({
    port: client.port,
    host: client.host
  }, () => {
    socket.pipe(client.socket).pipe(socket);
    client.next(); // Must call 'next' funtion
  });
});

Keywords

socket

FAQs

Package last updated on 21 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts