json-to-csv-export
json-to-csv-export copied to clipboard
Adding sep= to the top of file to help with opening csv files
When adding a delimitter as follows:
const dataToConvert = {
data: result,
filename: `${props.name}.csv`,
delimiter: ';',
headers: Object.keys(result[0])
}
The delimitter should be added at the top of the file to help with opening it.
#51
Hey @mathijsfr, thank you for the pull request and opening this issue. The solution here causes some compatibility issues with basic csv views (non-excel.) See the image below of when one opens the csv with Apple Numbers.