NodejsScriptExecutor

ba.sake.nodejs.script.executor.NodejsScriptExecutor
See theNodejsScriptExecutor companion object
class NodejsScriptExecutor(baseFolder: Path, dependencies: Seq[NpmDependency])

Executes a Node.js script in a given folder (sandbox) with optional npm dependencies.

Value parameters

baseFolder

Base folder for the script execution.

dependencies

List of npm dependencies to install before executing the script.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def executeScript(jsScript: String, scriptName: String): String

Executes a Node.js script in the given folder.

Executes a Node.js script in the given folder.

Value parameters

jsScript

JavaScript code to be executed.

scriptName

Name of the script file to be created.

Attributes

Returns

stdout of the script