NodeVersion

NodeVersion

NodeVersion checks and compares node version.

Constructor

new NodeVersion(version)

Create a NodeVersion
Source:
Parameters:
Name Type Description
version string node version, e.g. '14.0'

Methods

(async) match() → {boolean}

Async to check if the specified node version matches current node version.
Source:
Returns:
Type:
boolean
true if matches

matchSync() → {boolean}

Sync to check if the specified node version matches current node version.
Source:
Returns:
Type:
boolean
true if matches