{"id":18417774,"url":"https://github.com/danieljdufour/fast-rle","last_synced_at":"2025-04-07T12:32:51.154Z","repository":{"id":57233092,"uuid":"268922907","full_name":"DanielJDufour/fast-rle","owner":"DanielJDufour","description":"Fast Run Length Encoder and Decoder","archived":false,"fork":false,"pushed_at":"2023-05-21T12:56:41.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T18:51:26.834Z","etag":null,"topics":["rle","rle-compression-algorithm","run-length-decoding","run-length-encoding"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanielJDufour.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-02T22:37:47.000Z","updated_at":"2024-03-09T05:07:16.000Z","dependencies_parsed_at":"2024-06-11T19:17:07.357Z","dependency_job_id":null,"html_url":"https://github.com/DanielJDufour/fast-rle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Ffast-rle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Ffast-rle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Ffast-rle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Ffast-rle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielJDufour","download_url":"https://codeload.github.com/DanielJDufour/fast-rle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247653387,"owners_count":20973821,"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":["rle","rle-compression-algorithm","run-length-decoding","run-length-encoding"],"created_at":"2024-11-06T04:11:14.352Z","updated_at":"2025-04-07T12:32:50.565Z","avatar_url":"https://github.com/DanielJDufour.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fast-rle\nFast Run Length Encoder and Decoder\n\n# usage\n## decoding\n```javascript\nimport decode from 'fast-rle/decode';\n\nconst encoded = [5, 3, 1, 8, 2, 0];\ndecode(encoded);\n[3, 3, 3, 3, 3, 8, 0, 0]\n```\n## encoding\n```javascript\nimport encode from 'fast-rle/encode';\n\nconst nums = [3, 3, 3, 3, 3, 8, 0, 0];\nencode(nums);\n[5, 3, 1, 8, 2, 0]\n\nencode(nums, { chunk: true });\n[ [3, 5], [8, 1], [0, 2] ]\n\nencode(nums, { max_run_length: 2 });\n[2, 3, 2, 3, 1, 3, 1, 8, 2, 0]\n```\n\n# support\nPost an issue at https://github.com/danieljdufour/fast-rle\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljdufour%2Ffast-rle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieljdufour%2Ffast-rle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljdufour%2Ffast-rle/lists"}