Cuz sometime you just want to speak in Morse Code with your best buds. Better do it in JavaScript.
var MorseCode = require("./morsecode");
var morseConverter = new MorseCode();
morseConverter.translate("OMG HI");
// => "_ _ _ _ _ _ _ . . . . . . ."
(For this one, add the necessary <script>
tag to morsecode.js
)
// MorseCode is autoloaded to window.MorseCode
var morseConverter = new MorseCode();
morseConverter.translate("OMG HI");
// => "_ _ _ _ _ _ _ . . . . . . ."
$ npm install -g jasmine-node
$ jasmine-node test
MIT, do basically whatever you want. By Parker Moore.