1.0.2 • Published 6 years ago
react-fast-csv v1.0.2
React-Fast-csv
This is a library that provides CSV parsing and formatting.
Installation
npm install ract-fast-csv
Parsing
.fromString(string[, options])
This method parses a string
var csv = require("react-fast-csv");
var CSV_STRING = 'a,b\n' +
'a1,b1\n' +
'a2,b2\n';
csv
.fromString(CSV_STRING, {headers: true})
.on("data", function(data){
console.log(data);
})
.on("end", function(){
console.log("done");
});