https://github.com/monkeyscript/ngx-morse
A simple morse code encoder and decoder for Angular.
https://github.com/monkeyscript/ngx-morse
angular hacktoberfest morse morse-alphabet morse-code morse-codes morse-translator
Last synced: 21 days ago
JSON representation
A simple morse code encoder and decoder for Angular.
- Host: GitHub
- URL: https://github.com/monkeyscript/ngx-morse
- Owner: monkeyscript
- License: apache-2.0
- Created: 2020-04-21T13:45:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-21T05:47:58.000Z (2 months ago)
- Last Synced: 2025-04-23T00:21:23.768Z (about 1 month ago)
- Topics: angular, hacktoberfest, morse, morse-alphabet, morse-code, morse-codes, morse-translator
- Language: TypeScript
- Homepage: https://monkeyscript.github.io/ngx-morse/
- Size: 7.37 MB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-angular - ngx-morse - A simple morse code encoder and decoder for Angular. (Table of contents / Third Party Components)
- awesome-angular - ngx-morse - A simple morse code encoder and decoder for Angular. (Table of contents / Third Party Components)
README
# 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.