From 4803695d8b8f9a24f77d3d5cef2f30a0218d9e73 Mon Sep 17 00:00:00 2001 From: SheetJS Date: Thu, 6 Sep 2018 13:04:44 -0400 Subject: [PATCH] update README [ci skip] (h/t @mikelax) --- README.md | 6 +++--- misc/docs/README.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3a798c3..3b784a6 100644 --- a/README.md +++ b/README.md @@ -2206,7 +2206,7 @@ takes an options argument: | Option Name | Default | Description | | :---------- | :------: | :-------------------------------------------------- | -|`raw` | `false` | Use raw values (true) or formatted strings (false) | +|`raw` | `true` | Use raw values (true) or formatted strings (false) | |`range` | from WS | Override Range (see table below) | |`header` | | Control output format (see table below) | |`dateNF` | FMT 14 | Use specified date format in string output | @@ -2279,12 +2279,12 @@ Example showing the effect of `raw`: ```js > ws['A2'].w = "3"; // set A2 formatted string value -> XLSX.utils.sheet_to_json(ws, {header:1}); +> XLSX.utils.sheet_to_json(ws, {header:1, raw:false}); [ [ 'S', 'h', 'e', 'e', 't', 'J', 'S' ], [ '3', '2', '3', '4', '5', '6', '7' ], // <-- A2 uses the formatted string [ '2', '3', '4', '5', '6', '7', '8' ] ] -> XLSX.utils.sheet_to_json(ws, {header:1, raw:true}); +> XLSX.utils.sheet_to_json(ws, {header:1}); [ [ 'S', 'h', 'e', 'e', 't', 'J', 'S' ], [ 1, 2, 3, 4, 5, 6, 7 ], // <-- A2 uses the raw value [ 2, 3, 4, 5, 6, 7, 8 ] ] diff --git a/misc/docs/README.md b/misc/docs/README.md index 3e312f3..e0bbb8c 100644 --- a/misc/docs/README.md +++ b/misc/docs/README.md @@ -2032,7 +2032,7 @@ takes an options argument: | Option Name | Default | Description | | :---------- | :------: | :-------------------------------------------------- | -|`raw` | `false` | Use raw values (true) or formatted strings (false) | +|`raw` | `true` | Use raw values (true) or formatted strings (false) | |`range` | from WS | Override Range (see table below) | |`header` | | Control output format (see table below) | |`dateNF` | FMT 14 | Use specified date format in string output | @@ -2103,12 +2103,12 @@ Example showing the effect of `raw`: ```js > ws['A2'].w = "3"; // set A2 formatted string value -> XLSX.utils.sheet_to_json(ws, {header:1}); +> XLSX.utils.sheet_to_json(ws, {header:1, raw:false}); [ [ 'S', 'h', 'e', 'e', 't', 'J', 'S' ], [ '3', '2', '3', '4', '5', '6', '7' ], // <-- A2 uses the formatted string [ '2', '3', '4', '5', '6', '7', '8' ] ] -> XLSX.utils.sheet_to_json(ws, {header:1, raw:true}); +> XLSX.utils.sheet_to_json(ws, {header:1}); [ [ 'S', 'h', 'e', 'e', 't', 'J', 'S' ], [ 1, 2, 3, 4, 5, 6, 7 ], // <-- A2 uses the raw value [ 2, 3, 4, 5, 6, 7, 8 ] ]