read-excel-file 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -4,8 +4,6 @@ Read `*.xlsx` files of moderate size in a web browser or on a server.
|
|
|
4
4
|
|
|
5
5
|
It also supports parsing spreadsheet rows into JSON objects using a [schema](#schema).
|
|
6
6
|
|
|
7
|
-
[Huge files](#performance) may not be supported.
|
|
8
|
-
|
|
9
7
|
[Demo](https://catamphetamine.gitlab.io/read-excel-file/)
|
|
10
8
|
|
|
11
9
|
Also check out [`write-excel-file`](https://www.npmjs.com/package/write-excel-file) for writing `*.xlsx` files.
|
|
@@ -216,7 +214,7 @@ Dynamically calculated cells using formulas (`SUM`, etc) are not supported.
|
|
|
216
214
|
|
|
217
215
|
## Performance
|
|
218
216
|
|
|
219
|
-
There have been some
|
|
217
|
+
There have been some reports about performance issues when reading extremely large `*.xlsx` spreadsheets using this library. It's true that this library's main point have been usability and convenience, and not performance when handling huge datasets. For example, the time of parsing a file with 100,000 rows could be up to 10 seconds. If your application has to quickly read huge datasets, perhaps consider using something like [`xlsx`](https://github.com/catamphetamine/read-excel-file/issues/38#issuecomment-544286628) package instead. There're no comparative benchmarks between the two packages, so we don't know how much the difference would be. If you'll be making any benchmarks, share those in the "Issues" so that we could include them in this readme.
|
|
220
218
|
|
|
221
219
|
## Schema
|
|
222
220
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "read-excel-file",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "Read `*.xlsx` files of moderate size in a web browser or on a server.",
|
|
5
5
|
"module": "index.js",
|
|
6
6
|
"main": "index.cjs",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"test": "mocha --colors --bail --reporter spec --require ./test/setup.js \"./{,!(node_modules|commonjs|modules)/**/}*.test.js\" --recursive",
|
|
30
30
|
"clean-for-build": "rimraf ./commonjs/**/* ./modules/**/*",
|
|
31
31
|
"build-commonjs-modules": "better-npm-run build-commonjs-modules",
|
|
32
|
-
"build-commonjs-package.json": "node
|
|
32
|
+
"build-commonjs-package.json": "node build-scripts/create-commonjs-package-json.js",
|
|
33
33
|
"build-commonjs": "npm-run-all build-commonjs-modules build-commonjs-package.json",
|
|
34
34
|
"build-es6-modules": "better-npm-run build-es6-modules",
|
|
35
35
|
"browser-build": "rollup --config rollup.config.mjs",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// Creates a `package.json` file in the CommonJS `build` folder.
|
|
2
|
-
// That marks that whole folder as CommonJS so that Node.js doesn't complain
|
|
3
|
-
// about `require()`-ing those files.
|
|
4
|
-
|
|
5
|
-
import fs from 'fs'
|
|
6
|
-
|
|
7
|
-
fs.writeFileSync('./commonjs/package.json', JSON.stringify({
|
|
8
|
-
name: 'read-excel-file/commonjs',
|
|
9
|
-
type: 'commonjs',
|
|
10
|
-
private: true
|
|
11
|
-
}, null, 2), 'utf8')
|