1.0.2 • Published 8 years ago

epf-fix-schema v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

epf-fix-schema

Transform stream that fixes rows where Apple's EPF schema is inconsistent.

Usage

const Fixer = require('epf-fix-schema');
const parse = require('epf-parser');
const fs = require('fs');

fs.createReadStream('./application_detail')
  .pipe(parse((meta, rows) => {
    rows.pipe(new Fixer('application_detail', meta))
    .on('unfixable', row => console.error('Unfixable row:', row))
    .pipe(yourDestination);
  }))

License

MIT