JS/NodeJS plugin to encode and decode Morse.
npm install morsefy
bower install morsefy
npm install -g morsefy
to install as a command line application
or from unpkg https://unpkg.com/morsefy@1.0.0/lib/morsefy.js
<script src="bower_components/morsefy/lib/Morsefy.js"></script>
<script>document.write(Morsefy.decode('-- --- .-. ... . ..-. -.--'));</script>
// Morsefy
<script>document.write(Morsefy.encode('Morsefy'));</script>
// -- --- .-. ... . ..-. -.--
var morsefy = require('morsefy');
var morse = morsefy.encode('Hello World.');
var msg = morsefy.decode('.... . .-.. .-.. --- / .-- --- .-. .-.. -..');
morsefy [options]
-h, --help output usage information
-V, --version output the version number
--save <path> Save output to a textfile
decode [text] Decode a morse to text
encode [text] Encode a text to morse
morsefy encode 'Hello World'
npm test