{"id":20130879,"url":"https://github.com/eulixir/ex_cnab","last_synced_at":"2025-12-11T23:39:51.028Z","repository":{"id":149435729,"uuid":"620042001","full_name":"eulixir/ex_cnab","owner":"eulixir","description":"A CNAB file helper. This library aims to help your bank or cooperative read, decode, display, and perform various operations on a CNAB file","archived":false,"fork":false,"pushed_at":"2024-01-17T19:41:28.000Z","size":205,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T16:51:16.408Z","etag":null,"topics":["cnab","elixir","open-source","phoenix"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/ex_cnab/","language":"Elixir","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/eulixir.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","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":"2023-03-27T23:11:27.000Z","updated_at":"2024-06-04T15:12:33.000Z","dependencies_parsed_at":"2024-01-17T21:09:13.298Z","dependency_job_id":"be326db5-2ccb-47fa-af37-20eef34d905a","html_url":"https://github.com/eulixir/ex_cnab","commit_stats":null,"previous_names":["eulixir/ex_cnab","joaopealves/ex_cnab"],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/eulixir/ex_cnab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eulixir%2Fex_cnab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eulixir%2Fex_cnab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eulixir%2Fex_cnab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eulixir%2Fex_cnab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eulixir","download_url":"https://codeload.github.com/eulixir/ex_cnab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eulixir%2Fex_cnab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27672224,"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-12-11T02:00:11.302Z","response_time":56,"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":["cnab","elixir","open-source","phoenix"],"created_at":"2024-11-13T20:43:37.680Z","updated_at":"2025-12-11T23:39:51.008Z","avatar_url":"https://github.com/eulixir.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ExCnab\n\nExCnab makes it easy to read and process CNAB files.\n\n\u003e **This README follows the main branch, which may not be the currently published version**. Here are the\n\u003e [docs for the latest published version of ExCnab](https://hexdocs.pm/ex_cnab/ExCnab240.html).\n\n## Installation\n\n#### To install in all environments (useful for generating seed data in dev/prod):\n\nIn `mix.exs`, add the ExMachina dependency:\n\n```elixir\ndef deps do\n  [\n    {:ex_cnab, \"~\u003e 1.3.6\"},\n  ]\nend\n```\n\n## Overview\n\n[Check out the docs](https://hexdocs.pm/ex_cnab/ExCnab240.html) for more details.\n\nRead and Build info from file:\n\n```elixir\ndefmodule MyApp.CnabParser do\n  import ExCnab240\n\n  def run(filepath), do: decode(filepath, %{})\nend\n\noutput:\n\n    {:ok, %{\n        header: %{\n          # Content\n        },\n        details: %{\n          # Content\n        },\n        footer: %{\n          # Content\n        },\n        additional_info: %{\n          # Content\n        }\n      }}\n```\n\n```elixir\ndefmodule MyApp.CnabParser do\n  import ExCnab240\n\n  def run(decoded_cnab), do: encode(decoded_cnab, %{})\nend\n\noutput:\n\n    {:ok, %{content: \"xxxx...\", filename: \"JHVAABBDD.ret\"}}\n```\n\n```elixir\ndefmodule MyApp.GetDetailsType do\n  import ExCnab240\n\n  def run(decoded_cnab), do: find_details_type(cnab_file)\n\nend\n\noutput:\n\n     [\"A\", \"B\"]\n```\n\n## Contributing\n\nBefore opening a pull request, please open an issue first.\n\n    $ git clone https://github.com/joaopealves/ex_cnab.git\n    $ cd ex_cnab\n    $ mix deps.get\n    $ mix test\n\nOnce you've made your additions and `mix test` passes, go ahead and open a PR!\n\n## License\n\nExCnab is Copyright © 2023 João Pedro Alves. It is free software, and may be\nredistributed under the terms specified in the [LICENSE](/LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feulixir%2Fex_cnab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feulixir%2Fex_cnab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feulixir%2Fex_cnab/lists"}