importpw / netstring

Netstring encoding and decoding functions for shell scripts

Home Page:https://import.pw/netstring

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!,

About

Netstring encoding and decoding functions for shell scripts

https://import.pw/netstring

License:MIT License


Languages

Language:Shell 100.0%