morsecode

Encode and decode text using standard international Morse code

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 0.1.0
License GPL-3.0-or-later
CI Status Failing
Downloads 0
Last Indexed 2026-09-04 07:26

Authors

  • Nemuel Wainaina

Installation

nimble install morsecode
choosenim install morsecode
git clone https://github.com/nemuelw/morsecode

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
morsecode - - - - - - -

Dependencies

Package Version Optional
nim >= 1.6.12 No

Source

Repository https://github.com/nemuelw/morsecode
Homepage https://github.com/nemuelw/morsecode
Registry Source nimble_official

README

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