forked from sheetjs/docs.sheetjs.com
1.5 KiB
1.5 KiB
pagination_prev | pagination_next | sidebar_position | sidebar_custom_props | ||
---|---|---|---|---|---|
getting-started/index | getting-started/example | 6 |
|
import current from '/version.js';
Deno
Deno is a JavaScript runtime powered by V8.
:::caution Deno support is considered experimental.
Great open source software grows with user tests and reports. Any issues should be reported to the Deno project for further diagnosis.
:::
Each standalone release script is available at https://cdn.sheetjs.com/.
Using the URL imports, deno run
will automatically download scripts and types:
{`\
// @deno-types="https://cdn.sheetjs.com/xlsx-${current}/package/types/index.d.ts"
import * as XLSX from 'https://cdn.sheetjs.com/xlsx-${current}/package/xlsx.mjs';`}
The @deno-types
comment instructs Deno to use the type definitions.
:::warning
Older releases are technically available on deno.land/x but the Deno registry is out of date.
https://cdn.sheetjs.com/ is the authoritative source for SheetJS scripts.
:::
Encoding support
If Encoding support is required, cpexcel.full.mjs
must be manually imported:
{`\
/* load the codepage support library for extended support with older formats */
import * as cptable from 'https://cdn.sheetjs.com/xlsx-${current}/package/dist/cpexcel.full.mjs';
XLSX.set_cptable(cptable);`}