pipe-transform-cli

1.1.6 • Public • Published

pipe-transform-cli Build Status

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-cli

use it

Run it from the command line:

pipetransform [input encoding] [output encoding]

supported encodings

Supported input and output encodings are:

  • binary
  • utf8
  • hex
  • base64
  • base64url

examples

For example, pipe the openssl hashing output to turn it to base64url:

openssl dgst -sha256 -binary text.txt | pipetransform binary base64url

trailing 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 # => 776f726473 

While without the trim, the output would have been different:

echo words | bad-pipetransform --trim utf8 hex # => 776f7264730a 

license

VOL

Readme

Keywords

Package Sidebar

Install

npm i pipe-transform-cli

Weekly Downloads

0

Version

1.1.6

License

VOL

Last publish

Collaborators

  • saibotsivad