code: function printCurrentModules (infos) {
    check.verify.array(infos, 'expected array of modules')
  
    var modules = []
    infos.forEach(function (nameVersionArray) {
      check.verify.array(nameVersionArray, 'expected name version in ' + modules)
      modules.push({
        name: nameVersionArray[0],
        version: nameVersionArray[1]
      })
    })
    print(modules)
  }
docs: eslint-disable-next-line no-unused-vars