Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Performs a basic Excel API call using plain JavaScript & Promises.
name: createObjectURL method
description: Performs a basic Excel API call using plain JavaScript & Promises.
host: EXCEL
api_set: {}
script:
content: |-
const link = document.getElementById('link');
const blob = new Blob(["test"], { type: "application/octet-stream" });
link.href = URL.createObjectURL(blob);
link.download = "name.txt";
language: typescript
template:
content: <a id="link">Save file</a>
language: html
style:
content: ''
language: css
libraries: file-saver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.