You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WTF is mainly for development. By default, the parser will suppress read errors on single worksheets, allowing you to read from the worksheets that do parse properly. Setting WTF:1 forces those errors to be thrown.
However, in order to invoke that option I had to assign a value of true rather than 1 to WTF. If this is the case, I would be happy to open a PR.
I'm running SheetJS js-xlsx v0.15.0 on Node.js v12.12.0.
Thanks,
Parker
The text was updated successfully, but these errors were encountered:
The JS code checks for the truthiness, so in theory any value other than the falsy ones (0, null, undefined, false, and the empty string) should work. If this doesn't work from pure JS code, please share an example and we'll take a closer look.
The TypeScript definitions declare it as a boolean, so you'd get a compile-time error if you tried to pass 1.
It's probably better to change the docs in the way you proposed. Please open a PR. The correct place to make that change is docbits/80_parseopts.md -- README.md is assembled by the book recipe in the Makefile
The
README
, under the Parsing Options header, states that:However, in order to invoke that option I had to assign a value of
true
rather than1
toWTF
. If this is the case, I would be happy to open a PR.I'm running
SheetJS js-xlsx v0.15.0
onNode.js v12.12.0
.Thanks,
Parker
The text was updated successfully, but these errors were encountered: