forked from sheetjs/sheetjs
SheetJS
27af8a6d6a
- read and readFile accept opts argument: o cellNF (default false) true -> cell.z holds number format string o sheetStubs (default true) false -> stub cells not emitted - name consistency (parse_workbook -> parse_wb_xml) - README updates - CONTRIBUTING notes added
11 lines
300 B
JavaScript
11 lines
300 B
JavaScript
function fixopts(opts) {
|
|
var defaults = [
|
|
['cellNF', false], /* emit cell number format string as .z */
|
|
|
|
['sheetStubs', true], /* emit empty cells */
|
|
|
|
['WTF', false] /* WTF mode (do not use) */
|
|
];
|
|
defaults.forEach(function(d) { if(typeof opts[d[0]] === 'undefined') opts[d[0]] = d[1]; });
|
|
}
|