code: function publishedVers(name) {
          var _child$spawnSync = _child_process2['default'].spawnSync(npmCommand, ['view', name, 'versions', '--json']);
  
          var stdout = _child$spawnSync.stdout;
          var error = _child$spawnSync.error;
  
          if (error) throw error;
  
          return JSON.parse(stdout.toString());
      }
docs: get published versions via npm
  
  @param {String} [name] published package name
  @return {Array} versions
  @public