- reprocess directory sector lists if not available - search now strips out OLE metacharacters \0-\5 - strip sourceMappingURL references from minified scripts (h/t @vinin3) - added xlscfb.js for js-xls
16 lines
466 B
JavaScript
16 lines
466 B
JavaScript
var fs;
|
|
function readFileSync(filename, options) {
|
|
if(fs === undefined) fs = require('fs');
|
|
return parse(fs.readFileSync(filename), options);
|
|
}
|
|
|
|
function readSync(blob, options) {
|
|
switch(options !== undefined && options.type !== undefined ? options.type : "base64") {
|
|
case "file": return readFileSync(blob, options);
|
|
case "base64": return parse(s2a(Base64.decode(blob)), options);
|
|
case "binary": return parse(s2a(blob), options);
|
|
}
|
|
return parse(blob);
|
|
}
|
|
|