node-dbf icon indicating copy to clipboard operation
node-dbf copied to clipboard

converting to csv always throw -> Error: ENOENT: no such file or directory, open ...

Open alexrah opened this issue 6 years ago • 0 comments

I honestly dont understand why the file path passed to cli as $ node-dbf convert file.dbf

get joined to node-dbf folder inside node_modules.

I ended up replacing this line: https://github.com/abstractvector/node-dbf/blob/12fb719e1dbe5f49d8509250e2c30953310cbdf4/bin/node-dbf-convert.js#L16

with: .action(function(f) { file = f; })

this solved the issue and allowed me to convert to csv, but feels like I'm missing something.

alexrah avatar Mar 18 '18 21:03 alexrah