Interface NodeVersions
public interface NodeVersions
Get Node.js dependencies versions
-
Method Summary
Modifier and TypeMethodDescriptionget()Get managed Node.js package versionsdefault NodePackageVersionget(String packageName, NodePackagesVersionSource source) Get the Node.js package version from the given sourcedefault NodePackageVersionget(String packageName, NodePackagesVersionSourceFactory source) Get the Node.js package version from the given sourcedefault NodePackageVersionget(NodePackageName packageName, NodePackagesVersionSource source) Get the Node.js package version from the given sourcedefault NodePackageVersionThe version of Node.js.default NodePackageVersionpackageManagerVersion(NodePackageManager nodePackageManager)
-
Method Details
-
get
NodePackagesVersions get()Get managed Node.js package versions- Returns:
- The managed Node.js version
-
get
Get the Node.js package version from the given source- Parameters:
packageName- name of the package to get the version forsource- source folder for this version- Returns:
- The version
- Throws:
UnknownNodePackageException- if the package can't be found in source
-
get
Get the Node.js package version from the given source- Parameters:
packageName- name of the package to get the version forsource- source folder for this version- Returns:
- The version
- Throws:
UnknownNodePackageException- if the package can't be found in source
-
get
Get the Node.js package version from the given source- Parameters:
packageName- name of the package to get the version forsource- source folder for this version- Returns:
- The version
- Throws:
UnknownNodePackageException- if the package can't be found in source
-
nodeVersion
The version of Node.js. -
packageManagerVersion
-