# rfqt-morse-code

> Text to morse code converter.

Latest version **1.0.0** (published 2022-12-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install rfqt-morse-code
pnpm add rfqt-morse-code
yarn add rfqt-morse-code
bun add rfqt-morse-code
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-12-21 |
| First published | 2022-12-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rylmar Quispe |
| Maintainers | rylmar |

## Links

- npm: https://www.npmjs.com/package/rfqt-morse-code
- npm.io page: https://npm.io/package/rfqt-morse-code

## Recent versions

- 1.0.0 (latest) — 2022-12-21

## README

# Link to NPM repository
https://www.npmjs.com/package/rfqt-morse-code

# Installation

Using npm:

```bash
$ npm install rfqt-morse-code
```

# Example of use

Once the package is installed, you can import the library as follows:

```javascript
const { encodeMorseCode, decodeMorseCode } = require('rfqt-morse-code');
```

To use the function encodeMorseCode you must send a text string that you want to encode to morse code.
In the same way, for the decodeMorseCode function, a string containing the morse code to be decoded must be sent.

```javascript
const textToMorseCode = encodeMorseCode("Hello World");
const morseCodeToText = decodeMorseCode("--. --- --- -.. -... -.-- .");

console.log("Hello world in morse code:", textToMorseCode);
console.log("--. --- --- -.. -... -.-- .", "is:", morseCodeToText);
```

```bash
Hello world in morse code: .... . .-.. .-.. --- / .-- --- .-. .-.. -..
--. --- --- -.. -... -.-- . is: GOODBYE

```

---
_Source: https://npm.io/package/rfqt-morse-code · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
