docs: function getProjectName(dir) {
      return fs.readFileAsync(path.join(dir, 'package.json'))
          .then(JSON.parse & _.name)
          .catchThrow(new Error('Failed to parse package.json from the project'));
  }