lib/manifest.js
function readManifest (archive, cb) {
  return maybe(cb, async function () {
    var data = await readFile(archive, DAT_MANIFEST_FILENAME)
    data = JSON.parse(data.toString())
    if (data.links) data.links = massageLinks(data.links)
    return data
  })
}
function readManifest (archive, cb) {
  return maybe(cb, async function () {
    var data = await readFile(archive, DAT_MANIFEST_FILENAME)
    data = JSON.parse(data.toString())
    if (data.links) data.links = massageLinks(data.links)
    return data
  })
}
function readManifest ( archive , cb ) { return maybe ( cb , async function ( ) { var data = await readFile ( archive , DAT_MANIFEST_FILENAME ) data = JSON . parse ( data . toString ( ) ) if ( data . links ) data . links = massageLinks ( data . links ) return data } ) }
helper to read the manifest into an object
helper to read the manifest into an object