Thanks to visit codestin.com
Credit goes to github.com

Skip to content

simple module that convert xls files into json format

Notifications You must be signed in to change notification settings

qudou/node-xls-json

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
    field_name_row: 0     // 标题行开始,默认为 0
  }, 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

About

simple module that convert xls files into json format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%