code: function buildMetadata(f, metadataTarget, options, isText) {
  
    var ext = path.extname(f);
    var name = path.basename(f, ext);
  
    var data = buildMetadataContent(name, options, ext, isText);
  
    fs.ensureFileSync(metadataTarget);
    fs.writeFileSync(metadataTarget, data, 'utf8');
  
  }
docs: ---------------------------------------------------------------------------------------------------