Kolin Multiplatform Targets NodeJS
Code written in kotlin will get transformed to JavaScript NPM module which can be executed directly from Node.JS
GitHub https://github.com/dickensas/kotlin-gradle-templates/tree/master/js-nodejs
Simple Kotlin code
fun main() {
println ("hello")
test1()
}
The test1 function code
fun test1() {
println ("hello test1")
}
The package.json which is manually created at root folder of the project