--- sidebar_position: 1 sidebar_custom_props: summary: Classic pages with simple `} The `latest` tag references the latest version and updates with each release: ```html ``` **For production use, scripts should be downloaded and added to a public folder alongside other scripts.**
Download using Bower (click to show) [Bower](https://bower.io/) plays nice with the CDN tarballs:
{`\
$ npx bower install https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz`}
Bower will place the standalone scripts in `bower_components/js-xlsx/dist/`
Browser builds (click to show) The complete single-file version is generated at `dist/xlsx.full.min.js` `dist/xlsx.core.min.js` omits codepage library (no support for XLS encodings) A slimmer build is generated at `dist/xlsx.mini.min.js`. Compared to full build: - codepage library skipped (no support for XLS encodings) - no support for XLSB / XLS / Lotus 1-2-3 / SpreadsheetML 2003 / Numbers - node stream utils removed These scripts are also available on the CDN:
{`\

`}
Internet Explorer and ECMAScript 3 Compatibility (click to show) For broad compatibility with JavaScript engines, the library is written using ECMAScript 3 language dialect as well as some ES5 features like `Array#forEach`. Older browsers require shims to provide missing functions. To use the shim, add the shim before the script tag that loads `xlsx.js`: ```html ``` Due to SSL certificate compatibility issues, it is highly recommended to save the Standalone and Shim scripts from and add to a public directory in the site. The script also includes `IE_LoadFile` and `IE_SaveFile` for loading and saving files in Internet Explorer versions 6-9. The `xlsx.extendscript.js` script bundles the shim in a format suitable for Photoshop and other Adobe products.
ECMAScript Module Imports in a SCRIPT TAG (click to show) The ECMAScript Module build is saved to `xlsx.mjs` and can be directly added to a page with a `script` tag using `type="module"`:
{`\
`}
If XLS support is required, `cpexcel.full.js` must be manually imported:
{`\
`}