forked from sheetjs/sheetjs
SheetJS
c0a8bef07c
- opts.bookDeps parses calc chain; now chains are not parsed by default - getzipdata safe option obviates some try-catch blocks - parsing cell type 'd' (h/t @malphettes, yet again :) - opts.WTF throws on errors
17 lines
601 B
JavaScript
17 lines
601 B
JavaScript
function fixopts(opts) {
|
|
var defaults = [
|
|
['cellNF', false], /* emit cell number format string as .z */
|
|
['cellHTML', true], /* emit html string as .h */
|
|
['cellFormula', true], /* emit formulae as .h */
|
|
|
|
['sheetStubs', false], /* emit empty cells */
|
|
|
|
['bookDeps', false], /* parse calculation chains */
|
|
['bookSheets', false], /* only try to get sheet names (no Sheets) */
|
|
['bookProps', false], /* only try to get properties (no Sheets) */
|
|
|
|
['WTF', false] /* WTF mode (throws errors) */
|
|
];
|
|
defaults.forEach(function(d) { if(typeof opts[d[0]] === 'undefined') opts[d[0]] = d[1]; });
|
|
}
|