{"id":18058721,"url":"https://github.com/rohanvashisht1234/morse","last_synced_at":"2025-08-19T02:33:48.823Z","repository":{"id":225002332,"uuid":"764821765","full_name":"RohanVashisht1234/morse","owner":"RohanVashisht1234","description":"Morse Code library in Zig programming language","archived":true,"fork":false,"pushed_at":"2024-02-28T20:46:09.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T11:29:38.310Z","etag":null,"topics":["morse","morse-code","morsecode","morsecode-translator","morsedecode"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/RohanVashisht1234.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://www.buymeacoffee.com/rohanvashisht"}},"created_at":"2024-02-28T19:17:57.000Z","updated_at":"2024-11-13T11:35:49.000Z","dependencies_parsed_at":"2024-02-28T20:31:07.071Z","dependency_job_id":"287c40e3-dc38-4406-8e7a-a3181e76138c","html_url":"https://github.com/RohanVashisht1234/morse","commit_stats":null,"previous_names":["rohanvashisht1234/morse"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/RohanVashisht1234/morse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanVashisht1234%2Fmorse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanVashisht1234%2Fmorse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanVashisht1234%2Fmorse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanVashisht1234%2Fmorse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RohanVashisht1234","download_url":"https://codeload.github.com/RohanVashisht1234/morse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanVashisht1234%2Fmorse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271090209,"owners_count":24697533,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["morse","morse-code","morsecode","morsecode-translator","morsedecode"],"created_at":"2024-10-31T03:08:45.807Z","updated_at":"2025-08-19T02:33:48.543Z","avatar_url":"https://github.com/RohanVashisht1234.png","language":"Zig","funding_links":["https://www.buymeacoffee.com/rohanvashisht"],"categories":[],"sub_categories":[],"readme":"# MORSE CODE LIBRARY FOR ZIG!!!\n\n\u003e Using this you can convert character to morse code and vice-verse.\n\n## How to dry run:\n\nPlease run:\n- `git clone https://github.com/RohanVashisht1234/morse.git`\n- `zig build run_example`\n\n## How to use in your project:\n\nRun the following in terminal:\n- `$ mkdir my_morse`\n- `$ cd my_morse`\n- `$ zig init-exe`\nCreate a `build.zig.zon` file.\n\n- Enter the following:\n```zon\n.{\n    .name = \"my_morse\",\n    .version = \"0.0.0\",\n    .dependencies = .{\n        // morse v0.0.0\n        .morse = .{\n            .url = \"https://github.com/RohanVashisht1234/morse/archive/refs/tags/morse.tar.gz\",\n            .hash = \"12202c6a33bb65f1f8d5c75631fa49b8f2b98f166df5576fc9729dc50888bb05f761\",\n        }\n    }\n}\n```\nNow, inside build.zig enter:\n- \n```zig\nconst morse = b.dependency(\"morse\", .{\n    .target = target,\n    .optimize = optimize,\n});\nexe.addModule(\"morse\", morse.module(\"morse\"));\n```\nNow, inside main.zig add:\n\n```zig\nconst std = @import(\"std\");\nconst morse = @import(\"morse\");\nconst print = std.debug.print;\n\npub fn main() !void {\n    try morse.init();\n    var character = morse.get_char_from_morse(\".-\");\n    print(\".- is the morse code for: {s} \\n\", .{character});\n    var a_morse = morse.get_morse_from_char('A');\n    print(\"Morse code for a is: {s} \\n\", .{a_morse});\n}\n\n```\n- Run `zig build run`\n- Enjoy morse coding ...\n\n# MADE BY: ROHAN VASHISHT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohanvashisht1234%2Fmorse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohanvashisht1234%2Fmorse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohanvashisht1234%2Fmorse/lists"}