Skip to content

DevNvll/Morsefy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morsefy

JS/NodeJS plugin to encode and decode Morse.

Installing

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

Usage

<script src="bower_components/morsefy/lib/Morsefy.js"></script>

<script>document.write(Morsefy.decode('-- --- .-. ... . ..-. -.--'));</script>

// Morsefy

<script>document.write(Morsefy.encode('Morsefy'));</script>

// -- --- .-. ... . ..-. -.--

Node Module

Setup

var morsefy = require('morsefy');

Encoding

var morse = morsefy.encode('Hello World.');

Decoding

var msg = morsefy.decode('.... . .-.. .-.. --- / .-- --- .-. .-.. -..');

Command line

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

Example

morsefy encode 'Hello World'

Testing

npm test

About

JS/NodeJS plugin to encode and decode Morse.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published