Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- col1,col2,col3
- a,b,1
- d,e,2
- var fs = require("fs");
- var d3 = require("d3");
- fs.readFile("test.csv", "utf8", function(error, data) {
- var data = JSON.stringify(d3.csvParse(data));
- data.map((item, i) => console.log(`Hello ${item.col1} this ${item.col2} there are ${item.col3} blabla`));
- });
- var data = [{ "col1":"a","col2":"b","col3":1},
- { "col1":"d","col2":"e","col3":2}]
- data.map((item, i) => console.log(`Hello ${item.col1} this ${item.col2} there are ${item.col3} blabla`));
Add Comment
Please, Sign In to add comment