xls-to-json

Converting xls file to json files using nodejs

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

node-xls-json

Build Status npm version

Convert xls files to JSON in NodeJS

Install

npm i 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
		rowsToSkip: 5, // number of rows to skip at the top of the sheet; defaults to 0
		allowEmptyKey: false, // avoids empty keys in the output, example: {"": "something"}; default: true
	},
	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

版本列表
2.1.1 2022-06-01
2.1.0 2020-10-16
2.0.2 2020-10-16
2.0.1 2020-10-16
2.0.0 2020-07-10
1.0.1 2020-07-10
1.0.0 2020-07-10
0.5.4 2019-11-15
0.5.2 2019-03-28
0.5.1 2018-09-25
0.5.0 2018-04-22
0.4.0 2016-10-06
0.3.2 2014-10-12
0.3.1 2014-06-30
0.3.0 2014-06-28
0.2.2 2014-06-06
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