Skip to content
simple module that convert xls files into json format
JavaScript
Latest commit facb842 Dec 26, 2014 @chilijung chilijung Merge pull request #8 from foysalit/master
error event executes the callback with the error.
Failed to load latest commit information.
libs error event executes the callback with the error. Dec 21, 2014
sample add trim Mar 14, 2014
test add trim Mar 14, 2014
.gitignore Ignore Idea Oct 7, 2014
.travis.yml add tests Feb 9, 2014
README.md Update README.md Nov 8, 2014
index.js init Jan 21, 2014
package.json update pkg Oct 12, 2014

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

Something went wrong with that request. Please try again.