docparse-supplier-nge
Version:
process ngrid electric utility bill data for use in the docparse system
14 lines • 366 B
JavaScript
module.exports = function(data, cb) {
var check = data.check;
if (!check) {
check = require('./lib/upload/check');
}
check(data, function (err, reply) {
if (err) { return cb(err); }
var performParse = data.performParse;
if (!performParse) {
performParse = require('./lib/upload/performParse');
}
performParse(data, cb);
});
};