node-csv-json

Converting csv to JSON

node-csv-json

Converting csv file to json files using nodejs

  npm install node-csv-json
  node_cj = require("node-csv-json");
  node_cj({
    input: "sample.csv", 
    output: "output.json"
  }, function(errresult){
    if(err) {
      console.error(err);
    }else {
      console.log(result)
    }
  });

In config object, you have to enter an input path. But If you don't want to output any file you can set to null.

MIT @chilijung