NodeJsWrapper

data class NodeJsWrapper(val path: String, val workingDirectory: File) : ExecutableWrapper

Wrapper for launching scripts via Node.js.

Parameters

path

path to the Node.js executable

Constructors

Link copied to clipboard
constructor(path: String, workingDirectory: File)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val isValid: Boolean
Link copied to clipboard
open override val path: String
Link copied to clipboard
open override val workingDirectory: File

Working directory to run the executable in. If null, the current working directory will be used.

Functions

Link copied to clipboard
fun eval(code: Reader, vararg argv: String): String

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

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

Link copied to clipboard