eval

fun eval(code: String, vararg argv: String): String

Runs an expression or code snippet via Node.js from path.

Return

the stdout and stderr of the execution

Parameters

code

the code to run

argv

arguments to pass to the script


fun eval(code: Reader, vararg argv: String): String

See also