# morse-convert

> Encoding, decoding and hashing a value by morse alphabet with javascript language.

Latest version **1.1.0** (published 2022-06-21) · ISC license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2022-06-21 |
| First published | 2022-06-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | litfin88 |
| Maintainers | litfin88 |
| Keywords | morse, alphabet, encoding, decoding |

## Links

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

## Dependencies (1)

- [sha256](https://npm.io/package/sha256.md) ^0.2.0

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2022-06-21
- 1.0.3 — 2022-06-21
- 1.0.1 — 2022-06-21

## README

# Morse Alphabet Converter

You can encode, decode and hash with sha 256 by this package. You can use this also for user authentication.

## Installation

Use the package manager [npm](https://pip.pypa.io/en/stable/) to install morse-convert.

```bash
npm i morse-convert
```

## Usage

```javascript
const morse = require("morse-convert");

console.log(morse.valueToMorse("test message", String, false));
// Converting text to morse alphabet with string type.
// Output: - . ... -   -- . ... ... .- --. .

console.log(morse.valueToMorse("test message", Array, false));
// Converting text to morse alphabet with array type.
// Output: [ '- . ... -', '-- . ... ... .- --. .' ]

console.log(morse.valueToMorse("test message", String, true));
// Hashed value with morse alphabet.
// Output: b2833863f484c2386b3c13079a63fbb62d92780e394491403347e8aff312ffae

console.log(morse.morseToValue("- . ... -   -- . ... ... .- --. .", String, false));
// Converting morse to text with string type.
// Output: test message

console.log(morse.morseToValue("- . ... -   -- . ... ... .- --. .", Array, false));
// Converting morse to text with array type.
// Output: [ 'test', 'message' ]

console.log(morse.morseToValue("- . ... -   -- . ... ... .- --. .", Array, true));
// Hashed value with text.
// 190b5c60d1dcf5e362f996d9bdbc522a4c1feb92ce01b4c7ac4fad967b45ce97
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

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