class NodeJs

NodeJs commands

Methods

static string|null
getVersion()

Get version

static bool
isInstalled()

Return true if nodejs is installed

static mixed
runCommand(string $command, bool $async = false, bool $realTimeOutput = false)

Run nodejs command

Details

at line 25
static string|null getVersion()

Get version

Return Value

string|null

at line 35
static bool isInstalled()

Return true if nodejs is installed

Return Value

bool

at line 48
static mixed runCommand(string $command, bool $async = false, bool $realTimeOutput = false)

Run nodejs command

Parameters

string $command
bool $async
bool $realTimeOutput

Return Value

mixed