code: protected void getDependencies(JSONObject jsonObject, String rootDirectory, Collection<DependencyInfo> dependencies) {
          try {
              CommandLineProcess npmLs = new CommandLineProcess(rootDirectory, getLsCommandParams());
              npmLs.setTimeoutReadLineSeconds(this.npmTimeoutDependenciesCollector);
              List<String> linesOfNpmLs = npmLs.executeProcess();
              getDependencies(jsonObject, linesOfNpmLs, 1, dependencies);
          } catch (IOException e) {
              logger.warn("Error getting dependencies after running 'npm ls --json' on {}, error : {}", rootDirectory, e.getMessage());
              logger.debug("Error: {}", e.getStackTrace());
          }
      }
docs: /* --- Protected methods ---