1.1.6 • Published 9 years ago
pipe-transform-cli v1.1.6
pipe-transform-cli 
Command line utility to pipe one input encoding to another encoding
install
This utility requires nodejs to be installed.
Then, install the normal way with:
npm install -g pipe-transform-cliuse it
Run it from the command line:
pipetransform [input encoding] [output encoding]supported encodings
Supported input and output encodings are:
binaryutf8hexbase64base64url
examples
For example, pipe the openssl hashing output to turn it to base64url:
openssl dgst -sha256 -binary text.txt | pipetransform binary base64urltrailing newline trim
If the input encoding is utf8, base64, base64url, or hex, the final
trailing newline will be stripped.
With the trailing newline stripped the output is:
echo words | pipetransform --trim utf8 hex # => 776f726473While without the trim, the output would have been different:
echo words | bad-pipetransform --trim utf8 hex # => 776f7264730a