Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.
/ krow Public archive

A small library for generating tables in ASCII or HTML formats

License

Notifications You must be signed in to change notification settings

copper-leaf/krow

Repository files navigation

IMPORTANT

This library has been archived and will be receiving no further updates. Please switch to JakeWharton/picnic for a replacement library.

Krow

A small DSL for generating tables in ASCII or HTML formats

GitHub release (latest by date) Maven Central Kotlin Version

val table = krow {
    cell("col1", "row1") { content = "1-1" }
    cell("col1", "row2") { content = "1-2" }

    cell("col2", "row1") { content = "2-1" }
    cell("col2", "row2") { content = "2-2" }

    cell("col3", "row1") { content = "3-1" }
    cell("col3", "row2") { content = "3-2" }

    table {
        wrapTextAt = 30
        horizontalAlignment = HorizontalAlignment.CENTER
        verticalAlignment = VerticalAlignment.TOP
    }
}

Supported Platforms/Features

Platform
Android
JVM
iOS
JS

Installation

repositories {
    mavenCentral()
}

// for plain JVM or Android projects
dependencies {
    implementation("io.github.copper-leaf:krow-core:{{site.version}}")
}

// for multiplatform projects
kotlin {
    sourceSets {
        val commonMain by getting {
            dependencies {
                implementation("io.github.copper-leaf:krow-core:{{site.version}}")
            }
        }
    }
}

Documentation

See the website for detailed documentation and usage instructions.

License

Krow is licensed under the BSD 3-Clause License, see LICENSE.md.

References

About

A small library for generating tables in ASCII or HTML formats

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages