morse
Version, currently 0.1.01 version
- 0.1.0latestFeb 12, 2018
github.com/thegreyfellow/morse.cr
A small library to encode/decode Morse code.
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
morse:
github: thegreyfellow/morse.cr
version: ~> 0.1.0Then run:
shards installshard.yml
- Crystal
0.23.1- License
- MIT
- Author
- yidmoussi
- Target
morsefrom src/morse.cr
Dependencies
This version declares no dependencies.
README
morse
Morse code encoder/decoder.
Installation
Add this to your shard.yml:
dependencies:
morse:
github: thegreyfellow/morse.cr
version: "~> 0.1.0"
Usage
# Encoding a string
to_encode = "hello world, this is me from the past."
encoded_string = Morse.encode(to_encode)
# => ".... . .−.. .−.. −−− / .−− −−− .−. .−.. −.. −−..−− / − .... .. ... / −.−− −−− ..− ... ... . ..−. / ..−. .−. −−− −− / − .... . / .−−. .− ... − .−.−.−"
# Decoding a string
to_decode = ".... . .−.. .−.. −−− / .−− −−− .−. .−.. −.. −−..−− / − .... .. ... / −.−− −−− ..− ... ... . ..−. / ..−. .−. −−− −− / − .... . / .−−. .− ... − .−.−.−"
decoded_string = Morse.decode(to_decode)
# => "hello world, this is me from the past."
Development
- git clone the repo.
- start hacking around :).
Contributing
- Fork it ( https://github.com/thegreyfellow/morse/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- thegreyfellow - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Feb 12, 2018
- Commit
e019c66e8398- Crystal
0.23.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/thegreyfellow/morse.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 1