// Open a file.
const blob = await fileOpen({
mimeTypes: ['image/*'],
});
// Save a `Promise<Blob>` that will be streamed.
// No need to `await` the `Blob` to be created.
const blob = createBlobAsyncWhichMightTakeLonger(someData);
await fileSave(response, {
fileName: 'Untitled.png',
extensions: ['.png'],
});
example code in readme is invalid javascript
quickfix: const -> var