Skip to content

Read & write delimited text file formats (incl. CSV and TSV).

License

Notifications You must be signed in to change notification settings

orchetect/swift-textfile-tools

Repository files navigation

swift-textfile-tools

Platforms - macOS | iOS | tvOS | watchOS | visionOS Swift 5.3-6.2 Xcode 12-26 License: MIT

Read and write common delimited text file formats, including:

  • CSV (comma-separated values)
  • TSV (tab-separated values)

This library implements the full CSV and TSV specifications, including proper escape sequences to assure the widest compatibility.

Installation

Swift Package Manager (SPM)

To add this package to an Xcode app project, use:

https://github.com/orchetect/swift-textfile-tools as the URL.

To add this package to a Swift package, add the dependency to your package and target in Package.swift:

let package = Package(
    dependencies: [
        .package(url: "https://github.com/orchetect/swift-textfile-tools", from: "0.3.0")
    ],
    targets: [
        .target(
            dependencies: [
                .product(name: "TextFileTools", package: "swift-textfile-tools")
            ]
        )
    ]
)

Roadmap

Future library additions could bring additional table data text file formats.

Author

Coded by a bunch of 🐹 hamsters in a trench coat that calls itself @orchetect.

License

Licensed under the MIT license. See LICENSE for details.

Community & Support

Please do not email maintainers for technical support. Several options are available for issues and questions:

  • Questions and feature ideas can be posted to Discussions.
  • If an issue is a verifiable bug with reproducible steps it may be posted in Issues.

Contributions

Contributions are welcome. Posting in Discussions first prior to new submitting PRs for features or modifications is encouraged.

Legacy

This repository was formerly known as TextFileKit.