I made this library for a bit of fun when I was making http://vcf.me
The concept is simple – it encodes normal text to morse code and decodes morse to text. It’s quite tolerant of different characters being used for the dots and dashes. Here’s a demo.
And you get the code and fork it on Github: https://github.com/greglane/MorseCodeConverter