#codec #nushell-plugin #nushell #scheme #html #encoding #base32

app nu_plugin_endecode

A plugin with various encoding schemes, from Crockford's base-32 to HTML entity escaping

5 releases (breaking)

0.101.0 Dec 23, 2024
0.100.0 Nov 16, 2024
0.99.0 Oct 20, 2024
0.3.0 Sep 22, 2024
0.2.0 Sep 2, 2024

#567 in Magic Beans

Download history 15/week @ 2024-09-11 157/week @ 2024-09-18 32/week @ 2024-09-25 9/week @ 2024-10-02 1/week @ 2024-10-09 151/week @ 2024-10-16 19/week @ 2024-10-23 1/week @ 2024-10-30 3/week @ 2024-11-06 100/week @ 2024-11-13 16/week @ 2024-11-20 2/week @ 2024-12-04 4/week @ 2024-12-11 105/week @ 2024-12-18 26/week @ 2024-12-25

137 downloads per month

MPL-2.0 and maybe CC-PDDC

19KB
532 lines

More formats for encode/decode

One day, while tinkering with Iroh, I had a need to convert one identifier from Base32 to z-base-32. This sent me down a rabbit hole of all the binary-to-text encoding schemes. It turns out, there are quite a few out there.

This plugin provides the following bases:

  • encode crockford: Crockford's Base32.

  • decode/encode z32: z-base-32, a "human-oriented" base-32 encoding.

  • decode/encode z85: ZeroMQ's Z85, a relaxed version (byte length doesn't have to be the multiple of 4).

  • decode/encode base58: Base58, mostly used by cryptocurrencies.

As well as a number of miscellaneous encodings:

  • decode/encode html: HTML entities escaping and unescaping.

  • decode unicode: converts Unicode strings to plain ASCII using the deunicode library.

Dependencies

~24–58MB
~1M SLoC