Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
value: 'github_data.release_link'
}, {
label: 'Github Start Commit Date',
value: (row) => formatDate(row, 'github_start_commit_data.start_date')
}, {
label: 'Github Start Commit Link',
value: (row) => row.github_start_commit_data ? ('https://github.com' + row.github_start_commit_data.start_commit_link) : ''
}, {
label: 'Github Contributors Count',
value: 'github_data.contributors_count'
}, {
label: 'Github Contributors Link',
value: 'github_data.contributors_link'
}];
const json2csvParser = new Parser({ fields });
const csv = json2csvParser.parse(elements, { fields });
downloadCSV(csv);
}
function formatDate(row, field) {