{"id":22701996,"url":"https://github.com/elegantchaos/csvcoding","last_synced_at":"2025-03-29T19:26:14.008Z","repository":{"id":45667711,"uuid":"413422704","full_name":"elegantchaos/CSVCoding","owner":"elegantchaos","description":"CSV Coding support for Swift","archived":false,"fork":false,"pushed_at":"2022-09-02T15:48:12.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-03-15T08:48:15.618Z","etag":null,"topics":["csv","encoding","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/elegantchaos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-04T12:59:49.000Z","updated_at":"2022-09-02T15:47:00.000Z","dependencies_parsed_at":"2022-07-31T16:19:09.294Z","dependency_job_id":null,"html_url":"https://github.com/elegantchaos/CSVCoding","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elegantchaos%2FCSVCoding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elegantchaos%2FCSVCoding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elegantchaos%2FCSVCoding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elegantchaos%2FCSVCoding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elegantchaos","download_url":"https://codeload.github.com/elegantchaos/CSVCoding/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246232871,"owners_count":20744732,"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","encoding","swift"],"created_at":"2024-12-10T07:11:37.341Z","updated_at":"2025-03-29T19:26:13.974Z","avatar_url":"https://github.com/elegantchaos.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSVEncoder\n\nVery basic support for encoding an Swift object as CSV.\n\n## Usage\n\n```swift\nlet encoder = CSVEncoder()\nencoder.dateEncodingStragegy = .iso8601\nlet data = try! encoder.encode(rows: [MyCodableThing()])\n```\n\nYou pass the encoder a list of codable objects.\n\nThis results in a data object which is a UTF-8 string.\n\nEach line of the string contains a value for each property of the codable object.\n\n## Headers\n\nBy default the first line of the encoded text is a header, using the names of the properties. \n\nThis can be disabled with `encoder.headerEncodingStrategy = .none`, or you can supply header names to the encoder manually when you create it. \n\nYou can also supply some translation settings with an optional bundle, table and/or prefix. If these are supplied, the header names are used as NSLocalizedString keys, and the resulting translated versions are written out.  \n\n## Decoding\n\nCurrently only encoding is supported. Simple decoding should be quite easy for me to add however, so please open an issue if you need it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felegantchaos%2Fcsvcoding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felegantchaos%2Fcsvcoding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felegantchaos%2Fcsvcoding/lists"}