Guest User

Untitled

a guest
Mar 23rd, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. col1,col2,col3
  2. a,b,1
  3. d,e,2
  4.  
  5. var fs = require("fs");
  6. var d3 = require("d3");
  7.  
  8. fs.readFile("test.csv", "utf8", function(error, data) {
  9. var data = JSON.stringify(d3.csvParse(data));
  10. data.map((item, i) => console.log(`Hello ${item.col1} this ${item.col2} there are ${item.col3} blabla`));
  11. });
  12.  
  13. var data = [{ "col1":"a","col2":"b","col3":1},
  14. { "col1":"d","col2":"e","col3":2}]
  15.  
  16. 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