Skip to content

v1.0.0-alpha.0

Pre-release
Pre-release

Choose a tag to compare

@cfilipov cfilipov released this 13 Aug 19:41
· 21 commits to master since this release

What's New

  • Breaking change: completely re-written API. No more conforming to a protocol, instead a TextTable class is used in similar to NSFormatter. This offers much more flexibility.
  • Many more output formats. Similar to what you get from Python's tabulate lib.

Known Issues

  • No attempt at optimizing performance has been made yet. Even when widths are provided, an expensive calculation is still performed.
  • No escaping is being done. None of the formatters even attempt to sanitize the input strings.
  • Center alignment not supported. This will result in a fatalError().
  • It should be possible to create columns without headers, but this hasn't been tested and likely doesn't work yet.

SPM Dependency Snippet

.Package(url: "https://github.com/cfilipov/TextTable", Version(1, 0, 0, prereleaseIdentifiers: ["alpha", "0"]))