Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 426 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 426 Bytes

simpleCsvTojson

Module to convert a CSV file into a JSON Array. Following is assumed :

  • Line break character sequence is "\r\n"
  • Field separator is comma
  • First line has field names All values are represented as strings.

Installing:

npm install simpleCsvTojson

Usage:

var simpleCsvToJson = require('simpleCsvToJson');
simpleCsvToJson.getJson(txt, function(err,json) {
  console.log(json);
});