{"id":17350371,"url":"https://github.com/mateoguzmana/react-native-lz4","last_synced_at":"2025-04-14T20:31:31.468Z","repository":{"id":257807314,"uuid":"863192549","full_name":"mateoguzmana/react-native-lz4","owner":"mateoguzmana","description":"LZ4 – C++ React Native bindings for an extremely fast compression algorithm.","archived":false,"fork":false,"pushed_at":"2024-10-12T23:29:05.000Z","size":2944,"stargazers_count":15,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T09:03:30.343Z","etag":null,"topics":["android","compression","ios","lz4","react-native","zip"],"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/mateoguzmana.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2024-09-25T21:57:06.000Z","updated_at":"2025-03-01T09:11:02.000Z","dependencies_parsed_at":"2024-10-02T16:46:08.329Z","dependency_job_id":"e2dc46e4-353c-49ef-967a-14ae5d3c27ae","html_url":"https://github.com/mateoguzmana/react-native-lz4","commit_stats":null,"previous_names":["mateoguzmana/react-native-lz4"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateoguzmana%2Freact-native-lz4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateoguzmana%2Freact-native-lz4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateoguzmana%2Freact-native-lz4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateoguzmana%2Freact-native-lz4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mateoguzmana","download_url":"https://codeload.github.com/mateoguzmana/react-native-lz4/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248955560,"owners_count":21189164,"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":["android","compression","ios","lz4","react-native","zip"],"created_at":"2024-10-15T17:06:40.266Z","updated_at":"2025-04-14T20:31:28.341Z","avatar_url":"https://github.com/mateoguzmana.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-lz4\n\nLZ4 – React Native bindings for an extremely fast compression algorithm.\n\nCompress and decompress files using the LZ4 algorithm in React Native. This library binds the [LZ4 C library](https://github.com/lz4/lz4) to React Native via C++ TurboModules.\n\nThe library could also be extended to support other LZ4 features if needed.\n\n## Installation\n\n```sh\nnpm i react-native-lz4\ncd ios \u0026\u0026 pod install\n```\n\n## Usage\n\n```ts\nimport { compressFile, decompressFile } from 'react-native-lz4';\n\nfunction onProgress(processedSize: number, totalSize: number) {\n  // e.g. { processedSize: 50, totalSize: 100, progress: '50%' }\n  console.log({\n    processedSize,\n    totalSize,\n    progress: `${Math.round((processedSize / totalSize) * 100)}%`,\n  });\n}\n\nconst compressionResult = await compressFile(\n  'path/to/file',\n  'path/to/output',\n  onProgress\n);\nconst decompressionResult = await decompressFile(\n  'path/to/file',\n  'path/to/output',\n  onProgress\n);\n\nconsole.log(compressionResult);\n// { success: true, message: 'File compressed successfully', originalSize: 100, finalSize: 50 }\n\nconsole.log(decompressionResult);\n// { success: true, message: 'File decompressed successfully', originalSize: 50, finalSize: 100 }\n```\n\nSee the [example](example) for a full working example.\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmateoguzmana%2Freact-native-lz4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmateoguzmana%2Freact-native-lz4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmateoguzmana%2Freact-native-lz4/lists"}