hunk.code_window:  *     resolveTarball(pkg)
    */
   module.exports = function resolveTarball (pkg) {
     const name = getTarballName(pkg.raw)
     return Promise.resolve({
       name,
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:   const name = getTarballName(pkg.rawSpec)
  
hunk.file_path: lib/resolve/tarball.js
hunk.type: replace
file: 'use strict'
  module.exports = binify
  
  /*
   * Returns bins for a package in a standard object format. This normalizes
   * between npm's string and object formats.
   *
   *    binify({ name: 'rimraf', bin: 'cmd.js' })
   *    => { rimraf: 'cmd.js' }
   *
   *    binify({ name: 'rmrf', bin: { rmrf: 'cmd.js' } })
   *    => { rmrf: 'cmd.js' }
   */
  
  function binify (pkg) {
    if (typeof pkg.bin === 'string') {
      const obj = {}
      obj[pkg.name] = pkg.bin
      return obj
    }
  
    return pkg.bin || {}
  }
  