Interface NpmVersions
public interface NpmVersions
Get NPM dependencies versions
-
Method Summary
Modifier and TypeMethodDescriptionget()Get managed NPM package versionsdefault NpmPackageVersionget(String packageName, NpmVersionSource source) Get the npm package version from the given sourcedefault NpmPackageVersionget(NpmPackageName packageName, NpmVersionSource source) Get the npm package version from the given sourcedefault String
-
Method Details
-
get
NpmPackagesVersions get()Get managed NPM package versions- Returns:
- The managed npm version
-
get
Get the npm 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:
UnknownNpmPackageException- is the package can't be found in source
-
get
Get the npm 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:
UnknownNpmPackageException- is the package can't be found in source
-
getNodeVersion
- Returns:
- The version of the NodeJS.
-