lib/manifest.js
function writeManifest (archive, manifest, cb) {
  manifest = generateManifest(manifest)
  return writeFile(archive, DAT_MANIFEST_FILENAME, JSON.stringify(manifest, null, 2), cb)
}
function writeManifest (archive, manifest, cb) {
  manifest = generateManifest(manifest)
  return writeFile(archive, DAT_MANIFEST_FILENAME, JSON.stringify(manifest, null, 2), cb)
}
function writeManifest ( archive , manifest , cb ) { manifest = generateManifest ( manifest ) return writeFile ( archive , DAT_MANIFEST_FILENAME , JSON . stringify ( manifest , null , 2 ) , cb ) }
helper to write a manifest object
helper to write a manifest object