{"id":22222073,"url":"https://github.com/fabiospampinato/tiny-compressor","last_synced_at":"2025-07-27T16:32:34.730Z","repository":{"id":65389683,"uuid":"591124059","full_name":"fabiospampinato/tiny-compressor","owner":"fabiospampinato","description":"A tiny isomorphic compression library that leverages CompressionStream and DecompressionStream.","archived":false,"fork":false,"pushed_at":"2025-01-20T01:38:30.000Z","size":9,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T04:34:01.677Z","etag":null,"topics":["compression","decompression","isomorphic","stream","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":"2023-01-20T00:59:04.000Z","updated_at":"2025-01-20T01:38:32.000Z","dependencies_parsed_at":"2023-02-11T22:45:26.416Z","dependency_job_id":null,"html_url":"https://github.com/fabiospampinato/tiny-compressor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fabiospampinato/tiny-compressor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Ftiny-compressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Ftiny-compressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Ftiny-compressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Ftiny-compressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/tiny-compressor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Ftiny-compressor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267387040,"owners_count":24079161,"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-07-27T02:00:11.917Z","response_time":82,"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":["compression","decompression","isomorphic","stream","tiny"],"created_at":"2024-12-02T23:16:47.830Z","updated_at":"2025-07-27T16:32:34.724Z","avatar_url":"https://github.com/fabiospampinato.png","language":"TypeScript","readme":"# Tiny Compressor\n\nA tiny isomorphic compression library that leverages [`CompressionStream`](https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream) and [`DecompressionStream`](https://developer.mozilla.org/en-US/docs/Web/API/DecompressionStream).\n\nThis library exists because compressing and decompressing a `Uint8Array` with `CompressionStream` and `DecompressionStream` directly is _extremely_ inconvenient to write.\n\n## Install\n\n```sh\nnpm install tiny-compressor\n```\n\n## Usage\n\n```ts\nimport Compressor from 'tiny-compressor';\n\n// Let's compress and decompress a Uint8Array\n\nconst buffer = new Uint8Array ([ 1, 2, 3, 4, 5 ]);\nconst compressed = await Compressor.compress ( buffer, 'gzip' );\nconst decompressed = await Compressor.decompress ( compressed, 'gzip' );\n\nconsole.log ( decompressed ); // Uint8Array [ 1, 2, 3, 4, 5 ]\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%2Ftiny-compressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Ftiny-compressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Ftiny-compressor/lists"}