Skip to content

n3mu3lw/morsecode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Encode and decode text using standard international Morse code

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages