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

A Node.js library (in TypeScript and ESM) to encode/decode messages in SOCKS5 protocol.
```
npm i socks5-protocol
The naming of message types mostly follows the RFC 1928.
Here a list of implemented messages:
- AuthReq: The message from client for auth method selectionAuthResp
- : Server's response to AuthReqConnReq
- : The message from client to request a connection, binding, or associationConnResp
- : Server's response to ConnReqUdpReq
- : 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.
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.
``