Skip to content
Branch: master
Find file History
SheetJSDev version bump 0.12.4: zip cleanup
- PK magic number bound (fixes #1013 h/t @wlpeter)
- removed JSZip conflict (fixes #1017 h/t @seanmars)
- updated CFB to 1.0.5
- demo HTML conversion `string`
Latest commit 7149728 Mar 6, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.gitignore
Makefile demo refresh [ci skip] Sep 24, 2017
README.md
app.js
browserify.html
xlsxworker.js

README.md

Browserify

The library is compatible with Browserify and should just work out of the box.

This demo uses the require form to expose the whole library, enabling client code to access the library with var XLSX = require('xlsx'). The JS code from the root demo was moved to a separate app.js script. That script is bundled:

browserify app.js > browserify.js
uglifyjs browserify.js > browserify.min.js

Worker Scripts

Browserify can also bundle worker scripts! Instead of using importScripts, the worker script should require the module:

-importScripts('dist/xlsx.full.min.js');
+var XLSX = require('xlsx');

The same process generates the worker script:

browserify xlsxworker.js > worker.js
uglifyjs worker.js > worker.min.js

Analytics

You can’t perform that action at this time.