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);
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1

Package Sidebar

Install

npm i simpleCsvToJson

Weekly Downloads

1

Version

0.0.2

License

ISC

Last publish

Collaborators

  • svoorakk