{"id":17446034,"url":"https://github.com/jamen/ca-formats","last_synced_at":"2025-10-24T06:34:26.303Z","repository":{"id":96784032,"uuid":"121347083","full_name":"jamen/ca-formats","owner":"jamen","description":"Decodes cellular automata formats to [x1, y1, ..., xn, yn] values.","archived":false,"fork":false,"pushed_at":"2018-02-25T22:02:56.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T01:48:38.242Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/jamen.png","metadata":{"files":{"readme":"readme.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-13T06:26:36.000Z","updated_at":"2021-12-19T15:33:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"5a0b9a7b-0396-4871-9a50-1c13e920dfaa","html_url":"https://github.com/jamen/ca-formats","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/jamen%2Fca-formats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fca-formats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fca-formats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fca-formats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamen","download_url":"https://codeload.github.com/jamen/ca-formats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246802594,"owners_count":20836365,"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":[],"created_at":"2024-10-17T18:21:11.801Z","updated_at":"2025-10-24T06:34:26.253Z","avatar_url":"https://github.com/jamen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# ca-formats (WIP)\n\nDecodes [cellular automata][1] formats to `[x1, y1, ..., xn, yn]` values.  It currently supports the types `rle`, `plain`, and `life` (1.05 and 1.06).  \n\n## Install\n\n```sh\nnpm i ca-formats\n```\n\n## Usage\n\n### `decode.rle(str) -\u003e cells`\n\n### `decode.life(str) -\u003e cells`\n\n### `decode.plain(str) -\u003e cells`\n\nDecodes a string of the given type into an array of interlaced cells.\n\n```js\ndecode.plain('.OO\\nOO\\n.O')\n// [ 1, 0, 2, 0, 0, 1, 1, 1, 1, 2 ]\n\ndecode.rle('b2o$2ob$bo!')\n// [ 1, 0, 2, 0, 0, 1, 1, 1, 1, 2 ]\n```\n\nSee [`test/`][2] for more examples.\n\n[1]: https://en.wikipedia.org/wiki/Cellular_automaton\n[2]: test/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fca-formats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamen%2Fca-formats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fca-formats/lists"}