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
jw
09/12/2023, 7:55 PM
Notably Zipline today does not support pulling in arbitrary JS. Only JS created from Kotlin.
jw
09/12/2023, 7:56 PM
There's no technical limitation, it's just not implemented
p
Peter
09/12/2023, 7:58 PM
I see. Do you maybe have any other ideas, if it's possible to achieve what I would need?
j
jw
09/12/2023, 8:03 PM
Use a JS engine directly, like QuickJS, Duktape, etc.