# ngx-morse

> A simple morse code encoder and decoder library for Angluar.

Latest version **1.0.8** (published 2023-10-02) · Apache-2.0 license · 0 weekly downloads

## Install

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

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2023-10-02 |
| First published | 2020-05-01 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 46.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Maintainers | monkeyscript |
| Keywords | angular, ngx-morse, morse, morse code, morse alphabet, morse converter, morse encoder, morse decoder, morse translator, morse characters |

## Links

- npm: https://www.npmjs.com/package/ngx-morse
- Repository: https://github.com/monkeyscript/ngx-morse
- Homepage: https://monkeyscript.github.io/ngx-morse/
- Issues: https://github.com/monkeyscript/ngx-morse/issues
- npm.io page: https://npm.io/package/ngx-morse

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.3.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.0.8 (latest) — 2023-10-02
- 1.0.7 — 2023-05-22
- 1.0.6 — 2021-12-04
- 1.0.5 — 2021-08-04
- 1.0.4 — 2021-08-04
- 1.0.3 — 2020-11-17
- 1.0.2 — 2020-05-01
- 1.0.1 — 2020-05-01

## README

# Ngx-Morse

![npm](https://img.shields.io/npm/v/ngx-morse)
![npm bundle size](https://img.shields.io/bundlephobia/min/ngx-morse)
![NPM](https://img.shields.io/npm/l/ngx-morse)

A simple morse code encoder and decoder for Angular.

Demo : [https://monkeyscript.github.io/ngx-morse/](https://monkeyscript.github.io/ngx-morse/)

## Installation

Using npm :

```
$ npm i ngx-morse
```

## Usage

Import and use `NgxMorseService` in your component. It's that simple :)

```typescript 
import { NgxMorseService } from 'ngx-morse';
 
@Component({...})

export class YourComponent {
  
  constructor(private morse: NgxMorseService) {}
 
  encode() {
    let encoded = this.morse.encode('hello world!');
    // .... . .-.. .-.. --- / .-- --- .-. .-.. -.. -.-.--
  }

  decode() {
    let decoded = this.morse.decode('.... . .-.. .-.. --- / .-- --- .-. .-.. -.. -.-.--');
    // hello world!
  }

}

```

## Methods

- **encode()** : Takes a text as input and returns its morse code.

- **decode()** : Takes a morse code as input and returns its text value.

## Issues & Contributions

For a new feature, create an issue [here](https://github.com/monkeyscript/ngx-morse/issues). Open to all contributions :)

## License 

Apache-2.0. Please see the [license file](https://github.com/monkeyscript/ngx-morse/blob/master/LICENSE) for more information.

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