Ghost/ghost/members-csv/test/fixtures/two-columns-mapping-header.csv
Nazar Gargol fd982fef73 Added mapping support to CSV parser
no issue

- When processing CSV files `parse` function now allows for the client to specify "mapping" parameter in format of a hash as follows:
{ destination_property_name: 'source_column_name'}
e.g.:
{
  name: 'weird_name_column',
  email: 'email_column'
}
- It is done so to allow for the end user to provide exact mapping of the fields to be transformed into JSON.
2020-07-02 14:53:56 +12:00

4 lines
85 B
Plaintext

id,correo_electronico,nombre
1,"jbloggs@example.com","joe"
2,test@example.com,"test"