{"size": 303, "ext": "js", "max_stars_repo_path": "samples/option.on_record.alter.js", "max_stars_repo_name": "AAlakkad/node-csv-parse", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "samples/option.on_record.alter.js", "max_issues_repo_name": "AAlakkad/node-csv-parse", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "samples/option.on_record.alter.js", "max_forks_repo_name": "AAlakkad/node-csv-parse", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 15.9473684211, "max_line_length": 33, "alphanum_fraction": 0.5082508251}

const parse = require('../lib')
const assert = require('assert')

parse(`
a.1,a.2,a.3
b.1,b.2,b.3
`.trim(), {
  on_record: (record, {lines}) =>
    [lines, record[2], record[0]]
}, function(err, records){
  assert.deepEqual(
    records, [
      [1, 'a.3', 'a.1'],
      [2, 'b.3', 'b.1']
    ]
  )
})
