{"id":47711829,"url":"https://github.com/orchetect/swift-textfile","last_synced_at":"2026-04-02T18:35:51.867Z","repository":{"id":48314701,"uuid":"298067349","full_name":"orchetect/swift-textfile","owner":"orchetect","description":"Read \u0026 write delimited text file formats (incl. CSV and TSV).","archived":false,"fork":false,"pushed_at":"2026-03-27T09:58:28.000Z","size":156,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-27T13:06:17.631Z","etag":null,"topics":["csv","csv-export","csv-files","csv-import","csv-parser","ios","macos","swift5","swift5-3","tsv","tsv-files","tsv-format","tsv-parser","tvos","watchos"],"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/orchetect.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"orchetect"}},"created_at":"2020-09-23T19:01:10.000Z","updated_at":"2026-03-27T09:58:32.000Z","dependencies_parsed_at":"2025-03-05T13:36:17.596Z","dependency_job_id":"a47a6486-a864-4828-b13a-c3403d2e93e3","html_url":"https://github.com/orchetect/swift-textfile","commit_stats":null,"previous_names":["orchetect/textfilekit","orchetect/swift-textfile"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/orchetect/swift-textfile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchetect%2Fswift-textfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchetect%2Fswift-textfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchetect%2Fswift-textfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchetect%2Fswift-textfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orchetect","download_url":"https://codeload.github.com/orchetect/swift-textfile/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchetect%2Fswift-textfile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31312971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["csv","csv-export","csv-files","csv-import","csv-parser","ios","macos","swift5","swift5-3","tsv","tsv-files","tsv-format","tsv-parser","tvos","watchos"],"created_at":"2026-04-02T18:35:51.638Z","updated_at":"2026-04-02T18:35:51.848Z","avatar_url":"https://github.com/orchetect.png","language":"Swift","readme":"# swift-textfile\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Forchetect%2Fswift-textfile%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/orchetect/swift-textfile) [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Forchetect%2Fswift-textfile%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/orchetect/swift-textfile) [![License: MIT](http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)](https://github.com/orchetect/swift-textfile/blob/main/LICENSE)\n\nRead and write text files in Swift on Apple platforms and Linux.\n\n- Support for text encoding detection\n\n- Abstractions to read/write common delimited text file formats, including:\n\n  - CSV (comma-separated values)\n\n  - TSV (tab-separated values)\n\n\n\u003e [!NOTE]\n\u003e\n\u003e This library implements the full CSV and TSV specifications including proper escape sequences and text encoding auto-detection including handling of BOMs (byte order marks) to assure the widest compatibility. Limited support for reading malformed text encoding is implemented.\n\n## Overview\n\nThe main types provided:\n\n| Type            | Description                                                  |\n| --------------- | ------------------------------------------------------------ |\n| `PlainTextFile` | Read text file content from disk or from data in memory, with modestly robust text encoding auto-detection. |\n| `CSV`           | Read and write CSV files. Reading implements the same text encoding auto-detection schema as `PlainTextFile`. |\n| `TSV`           | Read and write TSV files. Reading implements the same text encoding auto-detection schema as `PlainTextFile`. |\n| `StringTable`   | A basic abstraction for manipulating a matrix of strings (row and columns). |\n\n## Installation\n\n### Swift Package Manager (SPM)\n\nTo add this package to an Xcode app project, use:\n\n `https://github.com/orchetect/swift-textfile` as the URL.\n\nTo add this package to a Swift package, add the dependency to your package and target in Package.swift:\n\n```swift\nlet package = Package(\n    dependencies: [\n        .package(url: \"https://github.com/orchetect/swift-textfile\", from: \"0.5.0\")\n    ],\n    targets: [\n        .target(\n            dependencies: [\n                .product(name: \"TextFile\", package: \"swift-textfile\")\n            ]\n        )\n    ]\n)\n```\n\n## Roadmap\n\nFuture library additions could bring additional table data text file formats.\n\n## Author\n\nCoded by a bunch of 🐹 hamsters in a trench coat that calls itself [@orchetect](https://github.com/orchetect).\n\n## License\n\nLicensed under the MIT license. See [LICENSE](https://github.com/orchetect/swift-textfile/blob/master/LICENSE) for details.\n\n## Community \u0026 Support\n\nPlease do not email maintainers for technical support. Several options are available for issues and questions:\n\n- Questions and feature ideas can be posted to [Discussions](https://github.com/orchetect/swift-textfile/discussions).\n- If an issue is a verifiable bug with reproducible steps it may be posted in [Issues](https://github.com/orchetect/swift-textfile/issues).\n\n## Contributions\n\nContributions are welcome. Posting in [Discussions](https://github.com/orchetect/swift-textfile/discussions) first prior to new submitting PRs for features or modifications is encouraged.\n\n## Legacy\n\nThis repository was formerly known as **swift-textfile-tools**, and previously **TextFileKit**.\n","funding_links":["https://github.com/sponsors/orchetect"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forchetect%2Fswift-textfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forchetect%2Fswift-textfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forchetect%2Fswift-textfile/lists"}