📋 Draw beautiful tables to your terminal.
Swift Ruby Objective-C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Sources
Table.swift
.gitignore
.travis.yml
LICENSE.txt
Package.swift
README.md
Table.swift.podspec

README.md

Table.swift 📋

Build Status codecov.io Carthage compatible SPM ready Version License Platform

Example

import Table

Table().put([["A", "B", "C"],
	["X", "XX", "XXX"],
	["Hello", "World", "!"]])

Creates the following output:

+-------+-------+-----+
| A     | B     | C   |
+-------+-------+-----+
| X     | XX    | XXX |
+-------+-------+-----+
| Hello | World | !   |
+-------+-------+-----+

Installation

CocoaPods

Table.swift is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Table.swift"

Carthage

To integrate Table.swift into your Xcode project using Carthage, specify it in your Cartfile:

github "jkandzi/Table.swift"

Run carthage update to build the framework and drag the built Table.framework into your Xcode project.

Swift Package Manager

To install with the Swift Package Manager, add the following in your Package.swift:

import PackageDescription

let package = Package(
    name: "MyProject",
    dependencies: [
        .Package(url: "https://github.com/jkandzi/Table.swift", majorVersion: 1)
    ]
)

Manual

You can also copy the Table.swift file into your Xcode project.

Contribution

You are welcome to fork and submit pull requests.

Author

Justus Kandzi, justus.kandzi@gmail.com

License

Table.swift is available under the MIT license. See the LICENSE file for more info.