harrisonhunter / papa-parse-meteor

Papa Parse packaged for Meteor
MIT License
19 stars 6 forks source link

Parsing nested arrays #7

Open allenfuller opened 8 years ago

allenfuller commented 8 years ago

I have a schema in my Meteor collection with nested arrays like:

{
  Contact: {
    firstName: contact_firstName,
    lastName: contact_lastName,
    emails: {
      email: contact_email_address,
      type: contact_email_type
    }
  }
}

And then a CSV file like:

firstName,lastName,email
Bob,Smith,bob@smith.com

Is there a way to insert that nested email address using PapaParse?

Thanks!

harrisonhunter commented 5 years ago

Added this note to the ReadME but wanted to post here in case anyone is subscribed to this thread:

Note: This package is no longer necessary: Note: If you are using a recent version of Meteor or imports, you no longer need this package. You can install the papaparse npm package directly and import it. In the root of your meteor project run meteor npm install --save papaparse. Then, you can import with import Papa from 'papaparse'; or import * as Papa from 'papaparse';

This problem is likely solved by switching to the npm version of the package OR is a problem in the npm version of the package and is thus out of scope for this repo