A CLI tool for learning and translating morse code. Remorse automatically detects whether you're entering text or morse code and translates accordingly.
- Bidirectional translation between text and morse code
- Interactive REPL mode for practice
- Command-line translation mode
- Supports letters, numbers, and common punctuation
- Automatic detection of input type
npm install
npm run buildTo use globally:
npm linkStart the interactive mode by running without arguments:
remorseIn REPL mode, simply type text or morse code and press Enter to see the translation:
remorse> Hello World
Morse: .... . .-.. .-.. --- / .-- --- .-. .-.. -..
remorse> ... --- ...
Text: SOS
remorse> help
[Shows help information]
remorse> exit
Translate directly from the command line:
# Text to morse
remorse "Hello World"
# Output: Morse: .... . .-.. .-.. --- / .-- --- .-. .-.. -..
# Morse to text
remorse "... --- ..."
# Output: Text: SOS
# Single word
remorse SOS
# Output: Morse: ... --- ...remorse --help- Dots are represented by
. - Dashes are represented by
- - Letters/characters are separated by spaces
- Words are separated by
/
Examples:
SOS→... --- ...Hello World→.... . .-.. .-.. --- / .-- --- .-. .-.. -..A→.-1→.----
# Build the project
npm run build
# Run in development mode
npm run dev
# Watch mode
npm run watchMIT