{"id":16319930,"url":"https://github.com/hermanverschooten/csv_generator","last_synced_at":"2025-03-16T14:30:58.115Z","repository":{"id":57487499,"uuid":"251049467","full_name":"Hermanverschooten/csv_generator","owner":"Hermanverschooten","description":"Simple CSV generator","archived":false,"fork":false,"pushed_at":"2024-04-25T14:32:44.000Z","size":23,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-14T23:45:29.783Z","etag":null,"topics":["csv","elixir"],"latest_commit_sha":null,"homepage":"","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/Hermanverschooten.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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-03-29T14:17:18.000Z","updated_at":"2024-04-25T14:32:48.000Z","dependencies_parsed_at":"2024-04-25T15:51:30.466Z","dependency_job_id":null,"html_url":"https://github.com/Hermanverschooten/csv_generator","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"cfde2db523690fd4384504f5f4f290576ad00445"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanverschooten%2Fcsv_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanverschooten%2Fcsv_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanverschooten%2Fcsv_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanverschooten%2Fcsv_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hermanverschooten","download_url":"https://codeload.github.com/Hermanverschooten/csv_generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243818195,"owners_count":20352629,"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":["csv","elixir"],"created_at":"2024-10-10T22:28:38.968Z","updated_at":"2025-03-16T14:30:57.736Z","avatar_url":"https://github.com/Hermanverschooten.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"This library provides an easy way to generate CSV files.\nIt allows you to define the colums and their respective types.\n\n## Example\n\n    defmodule MyCSV do\n      use CsvGenerator\n\n      column :name, :string\n      column :joined, :date, format: \"%d-%m-%Y\"\n      column :points, :integer, label: \"points earned\"\n      hardcoded :string, \"Game\", \"domino\"\n    end\n\nYou would then render the CSV bij calling the `render/1` method with\nthe list of lines to render.\n\n## Example\n\n    iex\u003e MyCSV.render([ \n       %{ name: \"Chris McCord\", joined: ~D[2020-01-01], points: 110},\n       %{ name: \"Jose Valim\", joined: ~D[2020-03-29], points: 10} ])\n    \"\\\"name\\\",\\\"joined\\\",\\\"points earned\\\",\\\"Game\\\"\\n\\\"Chris McCord\\\",01-01-2020,110,\\\"domino\\\"\\n\\\"Jose Valim\\\",29-03-2020,10,\\\"domino\\\"\"\n\nBy default the CSV columns will be seperated by a `\",\"`, the lines by a `\"\\n\"`.\nThis can be changed by using `delimiter` and `line_ending`.\n\n## Example\n\n    defmodule MyCSV do\n      use CsvGenerator\n\n      delimiter \";\"\n      line_ending \"\\r\\n\"\n\n      column :name, :string\n      column :birthday, :date, format: \"%d-%m-%Y\"\n      column :points, :integer\n    end\n\n    iex\u003e MyCSV.render([ \n       %{ name: \"Jose Valim\", joined: ~D[2020-03-29], points: 10} ])\n    \"\\\"name\\\";\\\"joined\\\";\\\"points earned\\\"\\n\\\"Jose Valim\\\";29-03-2020;10\"\n\n# Formatting\n\nA formatter is included, to be able to have `mix format` use it, you have to add it to your own `.formatter.exs` in `import_deps`.\n\n## Example\n\n    [\n      import_deps: [:ecto, :phoenix, :csv_generator],\n      inputs: [\"*.{ex,exs}\", \"priv/*/seeds.exs\", \"{config,lib,test}/**/*.{ex,exs}\"],\n      subdirectories: [\"priv/*/migrations\"]\n    ]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermanverschooten%2Fcsv_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhermanverschooten%2Fcsv_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermanverschooten%2Fcsv_generator/lists"}