1.0.0 • Published 1 year ago

tarea-code-morse-dejg v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Simple morse code encoder and decoder

Latin Alphabet Support

Firma

const firma =
    "___  ____ _  _ _ _    ____     _ _ _  _ ____ _  _ ____ ___ \n" +
    "|  \ |__| |\ | | |    |  |     | | |\/| |___ |\ | |___   / \n" +
    "|__/ |  | | \| | |___ |__|    _| | |  | |___ | \| |___  /__";

Features

  • Only supports latin alphabet
  • If you enter words that contain characters from another alphabet, the program will crash.
  • You can code words and phrases
  • You can decode words and phrases

Installation

npm

$ npm install tarea-code-morse-dejg

Usage

const { encode, decode } = require('tarea-code-morse-dejg');

const encoded = encode('HELLO WORLD');
// .... . .-.. .-.. --- / .-- --- .-. .-.. -..

const decoded = decode('-. --- -.. . .--- ...');
// nodejs

Links

https://www.npmjs.com/package/tarea-code-morse-dejg