{"id":16217329,"url":"https://github.com/synodriver/lua-huffman","last_synced_at":"2025-03-19T10:30:44.339Z","repository":{"id":41404363,"uuid":"509453599","full_name":"synodriver/lua-huffman","owner":"synodriver","description":"huffman encode and decode for lua","archived":false,"fork":false,"pushed_at":"2022-07-02T02:56:54.000Z","size":4,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T17:56:18.506Z","etag":null,"topics":["huffman","lua"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/synodriver.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-01T12:51:17.000Z","updated_at":"2024-09-08T08:08:43.000Z","dependencies_parsed_at":"2022-09-21T07:42:22.615Z","dependency_job_id":null,"html_url":"https://github.com/synodriver/lua-huffman","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Flua-huffman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Flua-huffman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Flua-huffman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Flua-huffman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synodriver","download_url":"https://codeload.github.com/synodriver/lua-huffman/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243982182,"owners_count":20378605,"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":["huffman","lua"],"created_at":"2024-10-10T11:26:43.822Z","updated_at":"2025-03-19T10:30:43.964Z","avatar_url":"https://github.com/synodriver.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003ci\u003e✨ lua-huffman ✨ \u003c/i\u003e\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eThe lua binding for \u003ca href=\"https://github.com/synodriver/huffman\"\u003ehuffman\u003c/a\u003e \u003c/h3\u003e\n\n### huffman compress and decompress for lua\n\n- usage\n```\nhfm = require(\"hfm\")\n\ndata = \"1234\"\n\nfor i = 1, 10 do\ndata = data .. data\nend\nprint(\"origin len : \" .. #data)\nencoded = hfm.encode(data)\nprint(\"encoded len : \" .. #encoded)\nprint(hfm.decode(encoded))\n\nhfm.encode_file(\"Makefile\", \"Makefile.bin\")\nhfm.decode_file(\"Makefile.bin\", \"Makefile.txt\")\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynodriver%2Flua-huffman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynodriver%2Flua-huffman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynodriver%2Flua-huffman/lists"}