simpleCsvToJson

0.0.2 • Public • Published

csvTojson

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 csvTojson

Usage:

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i simpleCsvToJson

      Weekly Downloads

      1

      Version

      0.0.2

      License

      ISC

      Last publish

      Collaborators

      • svoorakk