Skip to content
Sheetwrite

Sheetwrite / Documentation

downloadBytes@sheetwrite/core

Trigger a browser download from in-memory bytes.

Trigger a browser download from in-memory bytes. The temporary anchor is removed and its object URL is scheduled for revocation even when DOM append or click throws.

Declaration

function downloadBytes(
bytes: Uint8Array | string,
filename: string,
mime: string,
): void