Morse Machine in Javascript
It require uglify-js.
$ npm install -g uglify-js
$ make forhtml
<script src="out/morse.js"></script>
<script>
var morse = new Morse();
console.log(morse.decode('.- -...')); // This will print 'ab'
</script>
$ make
var Morse = require('out/morse.js').Morse;
var morse = new Morse();
console.log(morse.decode('.- -...')); // This will print 'ab'
$ node test/testcase.js