code: function () {
    var shrinkWrapPath = path.resolve(process.cwd(), 'npm-shrinkwrap.json');
    if (fs.existsSync(shrinkWrapPath)) {
      logger.logInfo('[npm] using npm-shrinkwrap.json instead of package.json');
      return shrinkWrapPath;
    }
  
    if (getNpmMajorVersion() >= 5) {
        var packageLockPath = path.resolve(process.cwd(), 'package-lock.json');
        if (fs.existsSync(packageLockPath)) {
            logger.logInfo('[npm] using package-lock.json instead of package.json');
            return packageLockPath;
        }
    }
  
    var packagePath = path.resolve(process.cwd(), 'package.json');
    return packagePath;
  }
docs: Returns path to configuration file for npm. Uses - npm-shrinkwrap.json if it exists; otherwise, - package-lock.json if it exists and npm >= 5; otherwise, - defaults to package.json