Skip to content

dotnet cli tool to dump some binary serialized formats in human-readable form

License

Notifications You must be signed in to change notification settings

alphacloud/dotnet-readbin

Repository files navigation

DOTNET-READBIN

Reads and dump in human-readable format binary serialized data.

Currently following formats are supported:

  • BSON
  • MessagePack
  • HEX
  • Base64

Build status

Stable Pre-release
Build Master Dev branch
NuGet NuGet NuGet
Code coverage Master Dev

Installation

Run dotnet tool install --global dotnet-readbin to install.

Run dotnet tool update --global dotnet-readbin to update to latest stable version. Also --version option can be used to install preview version.

Getting help

Run dotnet readbin --help to get help on commands available and common options.

Run dotnet readbin command --help to get help on specific command.

Examples

Multi-step conversion:

  1. Convert from Base64 to binary
  2. Dump binary MsgPack data in human-readable form.
echo gqJJZAGlVmFsdWWoVmFsdWU6IDE= | dotnet-readbin base64 | dotnet-readbin msgpack

Output:

{"Id":1,"Value":"Value: 1"}

Developmen info

Applicaton targets .NET Core 3.1

Libraries used: