UNPKG

csv-resolver

Version:

read csv and analyse

16 lines (12 loc) 491 B
## csv-resolver csv-resolver is a kind of tool to realize the csv documents' analysis, you can use csv-resolver to do things like following code shown. ```` javascript import CSVFormatter from 'csv-resolver'; const formatter = new CSVFormatter(); await formatter.loadFile(file.originFile); const res = await formatter.analyse((label, value, position) => { // You can get label, value, position in each row console.log(label, value, position); return Promise.resolve(''); }); ````