NodeJs
in package
NodeJs commands
Table of Contents
Methods
- getVersion() : string|null
- Get version
- isInstalled() : bool
- Return true if nodejs is installed
- runCommand() : mixed
- Run nodejs command
Methods
getVersion()
Get version
public
static getVersion() : string|null
Return values
string|nullisInstalled()
Return true if nodejs is installed
public
static isInstalled() : bool
Return values
boolrunCommand()
Run nodejs command
public
static runCommand(string $command[, bool $async = false ][, bool $realTimeOutput = false ]) : mixed
Parameters
- $command : string
- $async : bool = false
- $realTimeOutput : bool = false