xls-to-json-2

0.4.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.4.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.4.1
    1
  • 0.4.0
    0

Package Sidebar

Install

npm i xls-to-json-2

Weekly Downloads

1

Version

0.4.1

License

MIT

Last publish

Collaborators

  • qudou