Nuclearly Potent Moonshine
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

morsecode

1.0.0 • Public • Published

morsecode.js

Cuz sometime you just want to speak in Morse Code with your best buds. Better do it in JavaScript.

Usage

Node.js

var MorseCode = require("./morsecode");
var morseConverter = new MorseCode();
morseConverter.translate("OMG HI");
// => "_ _ _ _ _ _ _ . . . . . . ."

Browser

(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");
// => "_ _ _ _ _ _ _ . . . . . . ."

Tests

$ npm install -g jasmine-node
$ jasmine-node test

License

MIT, do basically whatever you want. By Parker Moore.

Keywords

none

install

npm i morsecode

Downloadsweekly downloads

5

version

1.0.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar