{"id":22221916,"url":"https://github.com/fabiospampinato/huffy","last_synced_at":"2025-06-11T14:05:31.419Z","repository":{"id":65147891,"uuid":"583967418","full_name":"fabiospampinato/huffy","owner":"fabiospampinato","description":"A tiny compression library based on Huffman coding.","archived":false,"fork":false,"pushed_at":"2023-09-24T16:38:36.000Z","size":22,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-29T21:45:31.913Z","etag":null,"topics":["coding","compression","decompression","huffman","tiny"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/fabiospampinato.png","metadata":{"files":{"readme":"readme.md","changelog":null,"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":"2022-12-31T17:24:10.000Z","updated_at":"2024-09-01T11:09:05.000Z","dependencies_parsed_at":"2023-01-02T01:16:23.851Z","dependency_job_id":null,"html_url":"https://github.com/fabiospampinato/huffy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fhuffy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fhuffy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fhuffy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fhuffy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/huffy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227817017,"owners_count":17824200,"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":["coding","compression","decompression","huffman","tiny"],"created_at":"2024-12-02T23:16:09.967Z","updated_at":"2025-06-11T14:05:31.407Z","avatar_url":"https://github.com/fabiospampinato.png","language":"TypeScript","readme":"# Huffy\n\nA tiny compression library based on Huffman coding.\n\n## Install\n\n```sh\nnpm install huffy\n```\n\n## Usage\n\n```ts\nimport {compress, decompress} from 'huffy';\n\n// Let's make some data to compress\n\nconst str = 'some string to compress, it works better with longer things'.repeat ( 10 );\nconst buffer = new TextEncoder ().encode ( str );\n\n// Let's compress and decompress it\n\nconst compressed = compress ( buffer );\nconst decompressed = decompress ( compressed );\n\n// Let's print the compression ratio\n\nconsole.log ( 'Compression ratio:', compressed.length / buffer.length );\n```\n\n## License\n\nMIT © Fabio Spampinato\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fhuffy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Fhuffy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fhuffy/lists"}