@guanghechen/dom-blob
v2.3.12
Published
Utilities for processing blob objects (i.e., download / create).
Downloads
33
Readme
Utilities for processing blob objects (i.e., download / create).
Install
npm
npm install --save @guanghechen/dom-blobpnpm
pnpm add @guanghechen/dom-blob
Usage
convertDataURLToBlob(dataURL: string): Blob: Creates and returns a blob from a data URL (either base64 encoded or not).downloadBlob(blob: Blob, filename: string): void: emit a download task in browser.
