Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time

Ecoji .NET: Encode Your Data With Emoji 馃樆

Encode and decode data using emoji in .NET. Like base64, except base1024, and uses an emoji alphabet. Ecoji .NET is a .NET Standard 2.0 implementation of Keith Turner's Ecoji Standard. In addition to the tiny netstandard2.0 library, a .NET Core command line tool is available.

Use It In Your App

$ dotnet add package ecoji

C# Example

> string encoded = Ecoji.Encode("Ecoji .NET")
"馃彛馃攭馃馃敿馃崍馃槸馃馃惀"

> Ecoji.DecodeUtf8("馃彛馃攭馃馃敿馃崍馃槸馃馃惀")
"Ecoji .NET"

Install the Command Line Tool

$ dotnet tool install -g dotnet-ecoji

Example

$ echo -m "Ecoji .NET" | ecoji
馃彛馃攭馃馃敿馃崍馃槸馃馃惀

$ echo -n "馃彛馃攭馃馃敿馃崍馃槸馃馃惀" | ecoji -d
Ecoji .NET

Usage

usage: ecoji [OPTIONS]... [FILE]

Encode or decode data as Unicode emojis. 馃樆馃嵐

Options:
  -d, --decode               Decode data.
  -w, --wrap=COLS            Wrap encoded lines after COLS characters
                               (default 76). Use 0 to disable line
                               wrapping.
  -h, --help                 Print this message.
  -v, --version              Print version information.