Open lsborg opened 10 years ago
Found the bug, around util.js:18.
It is:
var _CRCsv = function(args, cb) {
temp.mkdir('temp', function(err, dirPath) {
if(err) return cb(err);
csvFile = path.join(dirPath, 'convert.csv');
args.push('-c', csvFile);
utils.execute(args, function(err, stdout) {
if(err) return cb(err);
fs.readFile(csvFile, 'utf-8', function(err, csv_data) {
if(err) return cb(err);
cb(null, csv_data);
});
});
});
};
Should be:
var _CRCsv = function(args, cb) {
temp.mkdir('temp', function(err, dirPath) {
if(err) return cb(err);
csvFile = path.join(dirPath, 'convert.csv');
args.push('-c', csvFile);
!function(f){
utils.execute(args, function(err, stdout) {
if(err) return cb(err);
fs.readFile(f, 'utf-8', function(err, csv_data) {
if(err) return cb(err);
cb(null, csv_data);
});
});
}(csvFile);
});
};
@lsborg send a PR please
Thanks for the PR :+1:
@detj / @leftshifters Any chance of getting the PR merged?
I'm parsing the worksheets in a loop and the second parse is giving the result of the first.
The code:
The output:
The workbook: