
JavaScript runtime facilitates running scripts and expressions, particularly enhancing After Effects expressions within the Compottie library. Experimental and work-in-progress, suitable for evaluation.
JavaScript runtime for Kotlin Multiplatform. Written entirely in Kotlin. Works on every Kotlin target.
Powers After Effects expressions in Compottie library.
[!WARNING]
Project is experimental and WIP.
The runtime is not currently ES-compliant.
No support guarantees.
Use only for evaluation purposes or on your own risk
[versions]
keight="<version>"
[libraries]
keight = { module = "io.github.alexzhirkevich:keight", version.ref = "keight" }val engine = JSEngine(JSRuntime(coroutineContext))
val code = "const js = 'JS'; 'Hello, ' + js"
val script = engine.compile(code)
val result = script.invoke()?.toKotlin(engine.runtime)
println(result)
// or
val result = engine.evaluate(code)
println(result)
JavaScript runtime for Kotlin Multiplatform. Written entirely in Kotlin. Works on every Kotlin target.
Powers After Effects expressions in Compottie library.
[!WARNING]
Project is experimental and WIP.
The runtime is not currently ES-compliant.
No support guarantees.
Use only for evaluation purposes or on your own risk
[versions]
keight="<version>"
[libraries]
keight = { module = "io.github.alexzhirkevich:keight", version.ref = "keight" }val engine = JSEngine(JSRuntime(coroutineContext))
val code = "const js = 'JS'; 'Hello, ' + js"
val script = engine.compile(code)
val result = script.invoke()?.toKotlin(engine.runtime)
println(result)
// or
val result = engine.evaluate(code)
println(result)