2.0.2 • Published 2 years ago
nodejs-module-ivm-02 v2.0.2
Create a NodeJS module to convert text to morse code and to convert morse code to text.
This is the second exercise of practice 12 of the WEB Frontend Technologies module, for which there are two main functionalities:
- Convert text to morse code.
- Convert morse code to text.
Installation
npm i nodejs-module-ivm-02
Usage
First import the library:
const textConverter = require('nodejs-module-ivm-02');
For convert text to morse code:
textConverter.toMorseCode("Text in ascii");
For convert morse code to text:
textConverter.toAsciiCode("Text in morse")