xlsx-to-json

Convert xlsx to json

MIT 11 个版本
安装
npm install xlsx-to-json
yarn add xlsx-to-json
pnpm add xlsx-to-json
bun add xlsx-to-json
README

node-xlsx-json

Build Status

Converting xlsx file to json files using nodejs

Install

  npm install xlsx-to-json

Usage

  xlsxj = require("xlsx-to-json");
  xlsxj({
    input: "sample.xlsx", 
    output: "output.json"
  }, function(err, result) {
    if(err) {
      console.error(err);
    }else {
      console.log(result);
    }
  });

Specifying a target sheet

You can optionally provide a sheet name to extract from that sheet

  xlsxj = require("xlsx-to-json");
  xlsxj({
    input: "sample.xlsx", 
    output: "output.json",
    sheet: "tags"
  }, 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

版本列表
0.3.0 2017-06-16
0.2.4 2015-08-22
0.2.3 2014-06-06
0.2.2 2014-05-10
0.2.1 2014-03-14
0.2.0 2014-03-14
0.1.1 2014-02-15
0.1.0 2014-02-09
0.0.2 2014-01-23
0.0.1 2014-01-23
0.0.0 2014-01-21