Hi, can someone please help me (if possible with a...
# javascript
g
Hi, can someone please help me (if possible with any sample references), how to execute Javascript from Kotlin? I googled around few solutions like CashApp/Zipline and Mozilla/Rhino but am struggling to wrap my head around them. I feel I can learn quickly from a working code. Thanks!
r
This channel is about Kotlin/JS - a Kotlin language compiler for JavaScript target. You are probably looking for a JavaScript engine for JVM - https://michel-kraemer.github.io/citeproc-java/using/javascript-engines/
g
Thanks @Robert Jaros for sharing this, and sorry for posting here, I couldn’t find a more relevant channel. Also, I am not able to connect the dots from the citeproc-java docs. My use-case is to run a postman collection within Kotlin. I am able parse postman collection and make callouts, but when it comes to executing javascript within the “Tests” tab, I am unable to find a solution!
I think I might have found what I am looking for: https://github.com/oracle/graaljs/blob/master/docs/user/ScriptEngine.md