Skip to content

Netstring encoding and decoding functions for shell scripts

License

Notifications You must be signed in to change notification settings

importpw/netstring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f26d9ee · Jul 17, 2020

History

8 Commits
Jul 17, 2020
May 27, 2020
Jun 29, 2018
May 27, 2020

Repository files navigation

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 "[email protected]"

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

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

About

Netstring encoding and decoding functions for shell scripts

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages