Callback API
The signature is parse(data, [options], callback)
.
The callback example takes the CSV string in the first argument (input
), options in the second argument, and a user callback in the third argument. The callback receives any error thrown by the CSV parser in the first parameter (err
), or an array of records in the second argument (output
). It returns an array.