Class NpmPackageParser

java.lang.Object
io.cloudflight.license.gradle.tracker.model.npm.NpmPackageParser

public final class NpmPackageParser extends Object
  • Constructor Details

    • NpmPackageParser

      public NpmPackageParser()
  • Method Details

    • parseNpmModule

      public io.cloudflight.license.gradle.tracker.model.npm.NpmModuleDependencies parseNpmModule(File packageJson, File packageJsonLock) throws IOException
      Parses the file package-lock.json
      Returns:
      the dependencies of that module
      Throws:
      IOException - if the file does not exist or cannot be parsed