qif2json icon indicating copy to clipboard operation
qif2json copied to clipboard

is this for node backend or for react front end?

Open a3596287 opened this issue 5 years ago • 2 comments

I need a one for react front end please.

a3596287 avatar Mar 04 '20 06:03 a3596287

You can use it on frontend:

Import it:

import qif2json from 'qif2json';

And use:

qif2json.parseInput(text, {encoding: 'utf-8'}, async (err, data) => { ... your code ... })

Full example in similar framework (Vue):

https://github.com/gustawdaniel/open_cash_manager/blob/dev/src/components/ImportQIF.vue

gustawdaniel avatar May 04 '20 01:05 gustawdaniel

Now I have problem on fronted because of error:

This dependency was not found:                                                                                          friendly-errors 21:14:27
                                                                                                                        friendly-errors 21:14:27
* fs in ../qif2json/lib/qif2json.js                                                                                    friendly-errors 21:14:27
                                                                                                                        friendly-errors 21:14:27
To install it, you can run: npm install --save fs    

I propose to split functions from main file into small files and then import it like this

gustawdaniel avatar Oct 19 '20 19:10 gustawdaniel