1.0.1 • Published 8 years ago
encoding-proxy v1.0.1
encoding-proxy
Proxy for converting binary body payload (a buffer) to string with custom encoding. If encoding is not specified, it doesn't convert a buffer to string.
Used to workaround default nodejs http encoding to utf-8 (e.g. in Mountebank).
Installation
To install:
npm install encoding-proxyTo run:
./bin/encoding-proxy --target=https://localhost:8000 --port=8001 --insecure=true --encoding=binaryArguments (with default values):
--target=http://localhost:3000--port=3001--insecure=false--encoding=
Encodings:
utf8binarybase64hexucs2utf16leascii