Skip to content

Commit

Permalink
very basic numbers iwa parser
Browse files Browse the repository at this point in the history
  • Loading branch information
SheetJSDev committed Jan 29, 2022
1 parent d016615 commit bb99765
Show file tree
Hide file tree
Showing 30 changed files with 2,845 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ This log is intended to keep track of backwards-incompatible changes, including
but not limited to API changes and file location changes. Minor behavioral
changes may not be included if they are not expected to break existing code.

## v0.18.0

* Browser scripts only expose `XLSX` variable

## v0.17.4

* CLI script moved to `xlsx-cli` package
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ bits/01_version.js: package.json
bits/18_cfb.js: node_modules/cfb/xlscfb.flow.js
cp $^ $@

bits/83_numbers.js: modules/83_numbers.js
cp $^ $@


.PHONY: clean
clean: ## Remove targets and build artifacts
rm -f $(TARGET) $(FLOWTARGET)
Expand Down
6 changes: 6 additions & 0 deletions bits/21_ziputils.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ function getzipstr(zip, file/*:string*/, safe/*:?boolean*/)/*:?string*/ {
try { return getzipstr(zip, file); } catch(e) { return null; }
}

function getzipbin(zip, file/*:string*/, safe/*:?boolean*/)/*:any*/ {
if(!safe) return getdatabin(getzipfile(zip, file));
if(!file) return null;
try { return getzipbin(zip, file); } catch(e) { return null; }
}

function zipentries(zip) {
var k = zip.FullPaths || keys(zip.files), o = [];
for(var i = 0; i < k.length; ++i) if(k[i].slice(-1) != '/') o.push(k[i]);
Expand Down
Loading

0 comments on commit bb99765

Please sign in to comment.