Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including xls-to-json with all npm packages installed. Try it out:

var xlsToJson = require("xls-to-json")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

xls-to-json v0.5.1

Converting xls file to json files using nodejs


Build Status

Converting xls file to json files using nodejs


  npm install xls-to-json


  node_xj = require("xls-to-json");
    input: "sample.xls",  // input xls
    output: "output.json", // output json
    sheet: "sheetname"  // specific sheetname
  }, function(err, result) {
    if(err) {
    } else {

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.


MIT @chilijung

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free