Skip to content

Commit

Permalink
Corrected issue leftshifters#18
Browse files Browse the repository at this point in the history
  • Loading branch information
leandro committed Aug 8, 2014
1 parent 7f0e787 commit f9ddf04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "excel-parser",
"version": "0.2.2",
"version": "0.2.3",
"description": "node.js excel parser. Supports xlsx, xls",
"homepage": "https://github.com/vxtindia/excel-parser",
"main": "excelParser.js",
Expand Down
12 changes: 7 additions & 5 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ var _CRCsv = function(args, cb) {
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) {
!function(f){
utils.execute(args, function(err, stdout) {
if(err) return cb(err);
cb(null, csv_data);
fs.readFile(f, 'utf-8', function(err, csv_data) {
if(err) return cb(err);
cb(null, csv_data);
});
});
});
}(csvFile);
});
};

Expand Down

0 comments on commit f9ddf04

Please sign in to comment.