From 5b2e3e4786aa186659f1e94f2be15eab7b7566d0 Mon Sep 17 00:00:00 2001
From: SheetJS
Date: Fri, 11 Oct 2024 15:36:18 -0400
Subject: [PATCH] correct curl flags (h/t Kip R)
---
.../01-installation/02-frameworks.md | 2 +-
.../01-installation/03-nodejs.md | 2 +-
docz/docs/08-api/03-parse-options.md | 15 +++++----------
3 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/docz/docs/02-getting-started/01-installation/02-frameworks.md b/docz/docs/02-getting-started/01-installation/02-frameworks.md
index a545603..8f375c5 100644
--- a/docz/docs/02-getting-started/01-installation/02-frameworks.md
+++ b/docz/docs/02-getting-started/01-installation/02-frameworks.md
@@ -175,7 +175,7 @@ yarn remove xlsx`}
version is available at {"https://cdn.sheetjs.com/xlsx-" + current + "/xlsx-" + current + ".tgz"}
{`\
-curl -o https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz`}
+curl -O https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz`}
2) Create a `vendor` subfolder at the root of your project:
diff --git a/docz/docs/02-getting-started/01-installation/03-nodejs.md b/docz/docs/02-getting-started/01-installation/03-nodejs.md
index d029f5f..81fe5db 100644
--- a/docz/docs/02-getting-started/01-installation/03-nodejs.md
+++ b/docz/docs/02-getting-started/01-installation/03-nodejs.md
@@ -165,7 +165,7 @@ yarn remove xlsx`}
version is available at {"https://cdn.sheetjs.com/xlsx-" + current + "/xlsx-" + current + ".tgz"}
{`\
-curl -o https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz`}
+curl -O https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz`}
2) Create a `vendor` subfolder at the root of your project:
diff --git a/docz/docs/08-api/03-parse-options.md b/docz/docs/08-api/03-parse-options.md
index d31df84..98185ff 100644
--- a/docz/docs/08-api/03-parse-options.md
+++ b/docz/docs/08-api/03-parse-options.md
@@ -228,20 +228,15 @@ HTML tags include `html`, `table`, `head`, `meta`, `script`, `style`, `div`
- Why are random text files valid? (click to hide)
+ Why are random files valid? (click to hide)
Excel is extremely aggressive in reading files. Adding the XLS extension to any
-text file (where the only characters are ANSI display chars) tricks Excel into
-processing the file as if it were a CSV or TSV file, even if the result is not
-useful! This library attempts to replicate that behavior.
+file tricks Excel into processing the file.
-The best approach is to validate the desired worksheet and ensure it has the
-expected number of rows or columns. Extracting the range is extremely simple:
+If the file matches certain heuristics, Excel will use a format-specific parser.
-```js
-var range = XLSX.utils.decode_range(worksheet['!ref']);
-var ncols = range.e.c - range.s.c + 1, nrows = range.e.r - range.s.r + 1;
-```
+If it cannot deduce the file type, Excel will parse the unknown file as if it
+were CSV or TSV. SheetJS attempts to replicate that behavior.