No description
Find a file
2025-06-24 05:36:34 +03:00
src Update minimum required version 2025-06-24 05:36:34 +03:00
tests Initial commit 2025-06-23 19:18:39 +03:00
.gitignore Initial commit 2025-06-23 19:18:39 +03:00
morsecode.nimble Update minimum required version 2025-06-24 05:36:34 +03:00
README.md Add package usage instructions 2025-06-23 20:17:28 +03:00

morsecode

Encode and decode text using standard international Morse code

Setup

  • Run this command in your project directory:
nimble install morsecode

Usage

Import the package

import morsecode

Encoding

# output: .... . .-.. .-.. ---   .-- --- .-. .-.. -..
echo encode("HELLO WORLD)

Decoding

# output: HELLO WORLD
echo decode(".... . .-.. .-.. ---   .-- --- .-. .-.. -..")

Tests

  • To run tests, simply run this command:
nimble test