# to-morse

> A node.js module to parse & stringify morse code

Latest version **1.0.1** (published 2022-10-18) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install to-morse
pnpm add to-morse
yarn add to-morse
bun add to-morse
```

## 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.1 |
| Published | 2022-10-18 |
| First published | 2022-10-18 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 37.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | AguaDeCoco |
| Maintainers | aguadecoco |
| Keywords | npm, morse, parse |

## Links

- npm: https://www.npmjs.com/package/to-morse
- Repository: https://github.com/aguadecoco1301/to-morse
- Homepage: https://github.com/aguadecoco1301/to-morse#readme
- Issues: https://github.com/aguadecoco1301/to-morse/issues
- npm.io page: https://npm.io/package/to-morse

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-10-18
- 1.0.0 — 2022-10-18

## README

# to-morse
A node.js module to parse morse code

# Usage

The usage is very easy. Try this:
```js
let morse = require("to-morse")
console.log("Hello world".toMorse())
//#returns: .... . .-.. .-.. --- / .-- --- .-. .-.. -..
```

# Limits

Actually, the module only can parse letters of the Spanish alphabet (English alphabet + "ñ").

But, ¡More symbols coming soon!
# String.prototype.toMorse

The prototype has other three optional arguments, they are:

```js
String.prototype.toMorse(e, t, undef)

e = "e" character, or ".". You can change it.
t = "t" character, or "-". You can change it too
undef = equals to a undefined character. Default is "?"

"hello~".toMorse("*", "°", "$")
//# returns: **** * *°** *°** °°° $
//# default: .... . .-.. .-.. --- ?
```

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