Skip to content

lnyarl/morse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morse

Introduction

Morse Machine in Javascript

Quick start

It require uglify-js.

$ npm install -g uglify-js

For HTML

$ make forhtml


<script src="out/morse.js"></script>
<script>
  var morse = new Morse();
  console.log(morse.decode('.- -...'));   // This will print 'ab'
</script>

For Node

$ make


var Morse = require('out/morse.js').Morse;

var morse = new Morse();
console.log(morse.decode('.- -...'));   // This will print 'ab'

Test

$ node test/testcase.js

Reference

About

morse

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published