{"id":25453649,"url":"https://github.com/hofmannz/morse-code","last_synced_at":"2025-11-02T07:30:28.444Z","repository":{"id":56834923,"uuid":"137599808","full_name":"HofmannZ/morse-code","owner":"HofmannZ","description":"A library that converts morse code encoded strings to regular decoded strings.","archived":false,"fork":false,"pushed_at":"2019-03-04T19:26:08.000Z","size":10,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-08-20T22:34:06.490Z","etag":null,"topics":["dart","morse","morse-code"],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HofmannZ.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-16T17:53:33.000Z","updated_at":"2020-04-05T09:28:20.000Z","dependencies_parsed_at":"2022-09-02T03:40:51.128Z","dependency_job_id":null,"html_url":"https://github.com/HofmannZ/morse-code","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HofmannZ%2Fmorse-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HofmannZ%2Fmorse-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HofmannZ%2Fmorse-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HofmannZ%2Fmorse-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HofmannZ","download_url":"https://codeload.github.com/HofmannZ/morse-code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239384660,"owners_count":19629509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","morse","morse-code"],"created_at":"2025-02-17T23:56:43.145Z","updated_at":"2025-11-02T07:30:28.383Z","avatar_url":"https://github.com/HofmannZ.png","language":"Dart","readme":"# Morse Code\n\n[![version][version-badge]][package]\n[![MIT License][license-badge]][license]\n[![PRs Welcome][prs-badge]](http://makeapullrequest.com)\n\n[![Watch on GitHub][github-watch-badge]][github-watch]\n[![Star on GitHub][github-star-badge]][github-star]\n\n## Usage\n\nFist depend on the libary by ading this to your package's `pubspec.yaml`:\n\n```yaml\ndependencies:\n  morse_code: ^0.1.0\n```\n\nNow inside your Dart code you can import it.\n\n```dart\nimport 'package:morse_code/morse_code.dart';\n```\n\nFor this example we're going to use the following morse code string:\n\n```dart\nfinal String encodedMessage = '.... . .-.. .-.. --- / .-- --- .-. .-.. -..';\n```\n\nThere are two ways to decode a morse code string. Either provide de encoded string as an argument to the constructor, and call the `decode` method.\n\n```dart\nfinal Morse morse = new Morse(encodedMessage);\nString decodedMessage = morse.decode();\n\n// Or combine the two, for more compact code:\nString decodedMessage =  new Morse(encodedMessage).decode();\n```\n\nOr provide the encoded string as an argument to the `decode` method.\n\n```dart\nfinal Morse morse = new Morse();\nString decodedMessage = morse.decode(encodedMessage);\n\n// Or again combine the two, for more compact code:\nString decodedMessage =  new Morse().decode(encodedMessage);\n```\n\n## Contributing\n\nFeel free to open a PR with any suggetions!\n\n[version-badge]: https://img.shields.io/pub/v/morse_code.svg?style=flat-square\n[package]: https://pub.dartlang.org/packages/morse_code\n[license-badge]: https://img.shields.io/github/license/HofmannZ/morse-code.svg?style=flat-square\n[license]: https://github.com/HofmannZ/morse-code/blob/master/LICENSE\n[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs]: http://makeapullrequest.com\n[github-watch-badge]: https://img.shields.io/github/watchers/HofmannZ/morse-code.svg?style=social\n[github-watch]: https://github.com/HofmannZ/morse-code/watchers\n[github-star-badge]: https://img.shields.io/github/stars/HofmannZ/morse-code.svg?style=social\n[github-star]: https://github.com/HofmannZ/morse-code/stargazers\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhofmannz%2Fmorse-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhofmannz%2Fmorse-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhofmannz%2Fmorse-code/lists"}