Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 460 Bytes

Readme.md

File metadata and controls

20 lines (14 loc) · 460 Bytes

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

#!/usr/bin/env import
import "netstring@1.0.0"

printf "12:hello world!," | netstring_decode
# hello world!

printf "hello world!" | netstring_encode
# 12:hello world!,