TypeScript implementation #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/kb20-ts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Initial implementation of base-20 in TypeScript.
TypeScript strict parsing, alphabet hygiene, binary-digits mode, and docs
Summary
Brings the TypeScript reference to parity with the C90/C++20/Python3 implementations. Text mode supports
Unicode digit alphabets (e.g. Kaktovik), parsing is strict, custom alphabets must be 20 distinct characters, and
a binary-digits mode (0xFF separator) is included. All byte folding is MSB-first (big-endian) and doc'd.
What changed
ZERO, 20-distinctalphabet).kb20EncodeBinaryDigits/kb20DecodeBinaryDigitsadded.'-'as a digit symbol.Verification
You can test without a framework:
Compatibility
No format changes vs other languages. Text separator remains
'-'; binary-digits uses0xFF.WIP: TypeScript implementationto TypeScript implementation