tarea-code-morse-dejg

1.0.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i tarea-code-morse-dejg

      Weekly Downloads

      0

      Version

      1.0.0

      License

      ISC

      Unpacked Size

      4.25 kB

      Total Files

      7

      Last publish

      Collaborators

      • daniloernestojimenezguzman