csv-xlsx-to-json

0.0.2 • Public • Published

csv-xlsx-to-json

Processes csv and xlsx and convert them to json

introduction

Utilizes xlsx-to-json module by chilijung and csv-stream module by lbdremy to provide one simple to use package for converting xlsx and csv documents to json.

Getting Started

Watch for attachments:

var sheetToJson = require('csv-xlsx-to-json');
 
 
var filePath = "some/file/path/file.csv";
 
sheetToJson.process(filePath, function(err, result){
    if(err){
        //handle err
    }
 
    //do something with your json result
 
})
 
 

installation

$ npm install csv-xlsx-to-json

Dependencies

This module uses xlsx-to-json and csv-stream. For more robust individual features use these modules instead.

/csv-xlsx-to-json/

    Package Sidebar

    Install

    npm i csv-xlsx-to-json

    Weekly Downloads

    9

    Version

    0.0.2

    License

    none

    Last publish

    Collaborators

    • robmbackus