Skip to content

1r0nx/morrse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

morrse

morrse is a command line tool to encode text into morse and decode morse code


πŸš€ Features

  • enc
  • dec
  • The separator between letters are spaces
  • The separator between words while decoding morse is "/" by default but can be "," or ";"

🧱 Requirements

You need to have pyinstaller to compile the source code into binary. You can install it with:

pip3 install pyinstaller

πŸ”§ Installation

Clone the repository and create a binary:

git clone https://github.com/1r0nx/morrse
cd morrse
chmod +x build.sh
./build.sh
sudo cp dist/morrse /usr/bin

You can now use morrse as a simple linux commands

Or run it as a script:

git clone https://github.com/1r0nx/morrse
cd morrse
chmod +x morrse.py
./morrse.py

βš™οΈ Example

❯ morrse enc -s 'this is morse code'
- .... .. ... / .. ... / -- --- .-. ... . / -.-. --- -.. .
❯ morrse dec -s '- .... .. ... / .. ... / -- --- .-. ... . / -.-. --- -.. .'
THIS IS MORSE CODE
❯ morrse dec -s '- .... .. ... , .. ... , -- --- .-. ... . , -.-. --- -.. .'
THIS IS MORSE CODE
❯ morrse dec -s '- .... .. ... ; .. ... ; -- --- .-. ... . ; -.-. --- -.. .'
THIS IS MORSE CODE

πŸ“œ License

MIT License


πŸ™‹ Contributing

Pull Requests and suggestions are welcome. Please follow standard coding practices and document your changes.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published