TypeScript library for type-safe and lossless encoding and manipulation of world currencies and precious metals