0.2.4 • Published 2 months ago

socks5-protocol v0.2.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 months ago

socks5-protocol

NPM Version GitHub License

A Node.js library (in TypeScript and ESM) to encode/decode messages in SOCKS5 protocol.

Installation

npm i socks5-protocol

Usage

The naming of message types mostly follows the RFC 1928.

Here a list of implemented messages:

  • AuthReq: The message from client for auth method selection
  • AuthResp: Server's response to AuthReq
  • ConnReq: The message from client to request a connection, binding, or association
  • ConnResp: Server's response to ConnReq
  • UdpReq: Message for UDP communication between server and client

All the above message types have corresponding encoding and decoding functions. A SockError will be thrown when encoding/decoding fails.

License

Apache-2.0

Copyright 2024 DCsunset

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
0.2.4

2 months ago

0.2.3

2 months ago

0.2.2

2 months ago

0.2.1

2 months ago

0.2.0

2 months ago

0.1.0

2 months ago