diff --git a/docz/docs/02-installation/03-deno.md b/docz/docs/02-installation/03-deno.md
index 8b547638..55ff6d3b 100644
--- a/docz/docs/02-installation/03-deno.md
+++ b/docz/docs/02-installation/03-deno.md
@@ -19,6 +19,17 @@ 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](https://deno.land/x/)
+but the Deno registry is out of date.
+
+[This is a known registry bug](https://github.com/denoland/dotland/issues/2072)
+
+
Data from clipboard TSV (text/plain))} + {csvs[1] && (
{csvs[0]}
Data from clipboard HTML (text/html))} + {csvs[2] && (
{csvs[1]}
Data from clipboard RTF (text/rtf))} + {csvs.every(x => !x) && Copy data in Excel, click here, and paste (Control+V)} + > + ) +} +``` diff --git a/docz/docs/04-getting-started/03-demos/index.md b/docz/docs/04-getting-started/03-demos/index.md index 74c92cc4..8e9d930a 100644 --- a/docz/docs/04-getting-started/03-demos/index.md +++ b/docz/docs/04-getting-started/03-demos/index.md @@ -7,7 +7,13 @@ hide_table_of_contents: true The demo projects include small runnable examples and short explainers. -### Frameworks and APIs +### JavaScript APIs + +- [`XMLHttpRequest and fetch`](https://github.com/SheetJS/SheetJS/tree/master/demos/xhr/) +- [`Clipboard Data`](./clipboard) +- [`Typed Arrays and Math`](https://github.com/SheetJS/SheetJS/tree/master/demos/array/) + +### Frameworks - [`Angular.JS`](https://github.com/SheetJS/SheetJS/tree/master/demos/angular/) - [`Angular 2+ and Ionic`](https://github.com/SheetJS/SheetJS/tree/master/demos/angular2/) @@ -15,10 +21,6 @@ The demo projects include small runnable examples and short explainers. - [`Meteor`](https://github.com/SheetJS/SheetJS/tree/master/demos/meteor/) - [`React, React Native and NextJS`](https://github.com/SheetJS/SheetJS/tree/master/demos/react/) - [`VueJS, WeeX, and NuxtJS`](https://github.com/SheetJS/SheetJS/tree/master/demos/vue/) -- [`XMLHttpRequest and fetch`](https://github.com/SheetJS/SheetJS/tree/master/demos/xhr/) -- [`NodeJS Server-Side Processing`](https://github.com/SheetJS/SheetJS/tree/master/demos/server/) -- [`Databases and Key/Value Stores`](https://github.com/SheetJS/SheetJS/tree/master/demos/database/) -- [`Typed Arrays and Math`](https://github.com/SheetJS/SheetJS/tree/master/demos/array/) ### Front-End UI Components @@ -28,6 +30,8 @@ The demo projects include small runnable examples and short explainers. - [`vue3-table-light`](https://github.com/SheetJS/SheetJS/tree/master/demos/vue/modify/) ### Platforms and Integrations + +- [`NodeJS Server-Side Processing`](https://github.com/SheetJS/SheetJS/tree/master/demos/server/) - [`Deno`](https://github.com/SheetJS/SheetJS/tree/master/demos/deno/) - [`Electron`](https://github.com/SheetJS/SheetJS/tree/master/demos/electron/) - [`NW.js`](https://github.com/SheetJS/SheetJS/tree/master/demos/nwjs/) @@ -40,11 +44,12 @@ The demo projects include small runnable examples and short explainers. - [`Headless Browsers`](https://github.com/SheetJS/SheetJS/tree/master/demos/headless/) - [`Other JavaScript Engines`](https://github.com/SheetJS/SheetJS/tree/master/demos/altjs/) - [`"serverless" functions`](https://github.com/SheetJS/SheetJS/tree/master/demos/function/) +- [`Databases and Key/Value Stores`](https://github.com/SheetJS/SheetJS/tree/master/demos/database/) - [`Legacy Internet Explorer`](https://github.com/SheetJS/SheetJS/tree/master/demos/oldie/) ### Bundlers and Tooling + - [`browserify`](https://github.com/SheetJS/SheetJS/tree/master/demos/browserify/) -- [`fusebox`](https://github.com/SheetJS/SheetJS/tree/master/demos/fusebox/) - [`parcel`](https://github.com/SheetJS/SheetJS/tree/master/demos/parcel/) - [`requirejs`](https://github.com/SheetJS/SheetJS/tree/master/demos/requirejs/) - [`rollup`](https://github.com/SheetJS/SheetJS/tree/master/demos/rollup/) diff --git a/docz/docs/06-solutions/01-input.md b/docz/docs/06-solutions/01-input.md index dbfc65c4..9f397079 100644 --- a/docz/docs/06-solutions/01-input.md +++ b/docz/docs/06-solutions/01-input.md @@ -640,6 +640,32 @@ function process_RS(stream, cb) { } ``` + +
{csvs[2]}
{`\
+// @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';
+
+import { readAll } from "https://deno.land/std/streams/conversion.ts";
+
+/* Simple Deno.Reader from a file */
+const file = await Deno.open("test.xlsx", {read: true});
+
+/* \`content\` will be a Uint8Array holding the full contents of the stream */
+const content = await readAll(file);
+
+/* Since this is a Uint8Array, \`XLSX.read\` "just works" */
+const wb = XLSX.read(content);
+console.log(wb.SheetNames);`}
+