Encode and decode text using standard international Morse code
- Run this command in your project directory:
nimble install morsecodeimport morsecode# output: .... . .-.. .-.. --- .-- --- .-. .-.. -..
echo encode("HELLO WORLD)# output: HELLO WORLD
echo decode(".... . .-.. .-.. --- .-- --- .-. .-.. -..")- To run tests, simply run this command:
nimble test