I'm exploring possibility of running JS code in Ko...
# multiplatform
p
I'm exploring possibility of running JS code in Kotlin/Jvm project. My company has chosen a critical JS library, that I might in worst case need to use. I would like to avoid wrapping whole app in React native or smth. I've found zipline, that might do what I need. Is it possible to add npm package as a dependency?
j
Notably Zipline today does not support pulling in arbitrary JS. Only JS created from Kotlin.
There's no technical limitation, it's just not implemented
p
I see. Do you maybe have any other ideas, if it's possible to achieve what I would need?
j
Use a JS engine directly, like QuickJS, Duktape, etc.
p
ok, will look at that. Thank you!
s
j
Nashorn also still a thing https://github.com/openjdk/nashorn. There's no shortage of JS engines to pick from.
👍 1
👍🏾 1