simple module that convert xls files into json format
JavaScript
Switch branches/tags
Nothing to show
Clone or download
rodrigograca31 Merge pull request #26 from NGrant92/master
updated dependencies and dev dependencies
Latest commit 2c7b0d1 Apr 13, 2018
Permalink
Failed to load latest commit information.
libs Upgrade xlsjs to xlsx 0.8.0 Jan 12, 2016
sample add trim Mar 14, 2014
test add trim Mar 14, 2014
.gitignore specified xenial in travis.yml Apr 11, 2018
.travis.yml anything after csv 0.3.7 spits out an error. Removed xenial definitio… Apr 11, 2018
README.md Update README.md Apr 11, 2016
index.js
package-lock.json downgraded csv version due to 'csv is not a function errors' Apr 11, 2018
package.json anything after csv 0.3.7 spits out an error. Removed xenial definitio… Apr 11, 2018

README.md

node-xls-json

Build Status

Converting xls file to json files using nodejs

Install

  npm install xls-to-json

Usage

  node_xj = require("xls-to-json");
  node_xj({
    input: "sample.xls",  // input xls
    output: "output.json", // output json
    sheet: "sheetname"  // specific sheetname
  }, function(err, result) {
    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.

License

MIT @chilijung