netstring

Netstring encoding and decoding functions for shell scripts.

These functions operate over stdin and stdout so that NULL bytes are not lost in the process.

Example

bash
#!/usr/bin/env importimport "netstring@1.0.0"
printf "12:hello world!," | netstring_decode# hello world!
printf "hello world!" | netstring_encode# 12:hello world!,
View on GitHub
Crafted by