dev.chriskrueger:kotlin-express

Kotlin wrapper for Express API.


Keywords
express, expressjs, javascript, kotlin, kotlin-js, kotlin-library, kotlin-native
License
Apache-2.0

Documentation

Maven Central Kotlin Gradle GitHub License

kotlin-expess

A Kotlin wrapper for JavaScript express library.

Adding to your project

The library is published to Maven Central.

Gradle

Add the Maven Central repository if it is not already there.

repositories {
    mavenCentral()
}

To use the library in a single-platform project, add a dependency.

dependencies {
    implementation("dev.chriskrueger:kotlin-express:1.1.1")
}

Example

val app = express()
app.get("") { _, res ->
    res.status(200).send("hello")
}