sheetjs_sheetjs/demos/headless
SheetJS c9cab8078c version bump 0.11.13: codepage
- binary CSV `codepage` read option (fixes #907 h/t @popovserhii)
- BIFF2-5 `codepage` read option (fixes #912 h/t @makcbrain)
- `xlsx` utility `--codepage` override option
- HTML support some common entities (fixes #914 h/t @razvanioan)
2017-12-09 02:17:25 -05:00
..
.gitignore demo refresh [ci skip] 2017-09-24 19:40:09 -04:00
chromeless.js version bump 0.11.13: codepage 2017-12-09 02:17:25 -05:00
phantomjs.js demo refresh [ci skip] 2017-09-24 19:40:09 -04:00
puppeteer.js demo refresh [ci skip] 2017-09-24 19:40:09 -04:00
README.md version bump 0.11.13: codepage 2017-12-09 02:17:25 -05:00
sheetjs.xlsx version bump 0.11.3: "array" type 2017-08-19 19:06:34 -04:00
slimerjs.js demo refresh [ci skip] 2017-09-24 19:40:09 -04:00

Headless Browsers

The library, eschewing unstable and nascent ECMAScript features, plays nicely with most headless browsers. This demo shows a few common headless scenarios.

PhantomJS

This was tested in PhantomJS 2.1.1, installed using the node module:

$ npm install -g phantomjs
$ phantomjs phantomjs.js

Chrome Automation

This was tested in puppeteer 0.9.0 (Chromium revision 494755) and chromeless:

$ npm install puppeteer
$ node puppeteer.js

$ npm install -g chromeless
$ node chromeless.js

Since the main process is node, the read and write features should be placed in the webpage. The dist versions are suitable for web pages.

wkhtmltopdf

This was tested in wkhtmltopdf 0.12.4, installed using the official binaries:

$ wkhtmltopdf --javascript-delay 20000 http://oss.sheetjs.com/js-xlsx/tests/ test.pdf

SlimerJS

This was tested in SlimerJS 0.10.3 and FF 52.0, installed using brew on OSX:

$ brew install slimerjs
$ slimerjs slimerjs.js

Analytics