https://github.com/jkandzi/Table.swift
:clipboard: Draw beautiful tables to your terminal.
https://github.com/jkandzi/Table.swift
Last synced: 8 months ago
JSON representation
:clipboard: Draw beautiful tables to your terminal.
- Host: GitHub
- URL: https://github.com/jkandzi/Table.swift
- Owner: jkandzi
- License: mit
- Created: 2016-02-07T11:02:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-02T09:18:20.000Z (over 8 years ago)
- Last Synced: 2024-10-28T11:52:17.113Z (8 months ago)
- Language: Swift
- Homepage:
- Size: 14.6 KB
- Stars: 42
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Table.swift :clipboard:
[](https://travis-ci.org/jkandzi/Table.swift)
[](https://codecov.io/github/jkandzi/Table.swift?branch=master)
[](https://github.com/Carthage/Carthage)
[](https://www.swift.org)
[](http://cocoapods.org/pods/Table.swift)
[](http://cocoapods.org/pods/Table.swift)
[](http://cocoapods.org/pods/Table.swift)## Example
```swift
import TableTable().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](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
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`:
```swift
import PackageDescriptionlet 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, [email protected]
## License
Table.swift is available under the MIT license. See the [LICENSE](https://github.com/jkandzi/Table.swift/blob/master/LICENSE.txt) file for more info.