zahra_mahdizade_module
Version:
This module provides functionality to convert text to Morse code and vice versa.
41 lines (20 loc) • 884 B
Markdown
# Morse Code Converter
This project is a JavaScript module that allows you to convert text to Morse code and vice versa. The module includes two main functions: textToMorse and morseToText.
## Installation
To install this package, use npm:
## Usage
### Convert Text to Morse Code
To convert text to Morse code, use the textToMorse function:
### Convert Morse Code to Text
To convert Morse code back to text, use the morseToText function:
## Functions
### textToMorse(text)
- **Input**: A string of text
- **Output**: A string of Morse code
### morseToText(morse)
- **Input**: A string of Morse code
- **Output**: A string of text
## Contributing
If you would like to contribute to this project, please submit a pull request. Any ideas or feedback are also welcome!
## License
This project is licensed under the MIT License.