Interface NpmVersions


public interface NpmVersions
Get NPM dependencies versions
  • Method Details

    • get

      Get managed NPM package versions
      Returns:
      The managed npm version
    • get

      default NpmPackageVersion get(NpmPackageName packageName, NpmVersionSource source)
      Get the npm package version from the given source
      Parameters:
      packageName - name of the package to get the version for
      source - source folder for this version
      Returns:
      The version
      Throws:
      UnknownNpmPackageException - is the package can't be found in source
    • get

      default NpmPackageVersion get(String packageName, NpmVersionSource source)
      Get the npm package version from the given source
      Parameters:
      packageName - name of the package to get the version for
      source - source folder for this version
      Returns:
      The version
      Throws:
      UnknownNpmPackageException - is the package can't be found in source