@guanghechen/blob-helper
v1.9.8
Published
Utility funcs for handling blob objects (Such as download / create a blob from dataUrl)
Readme
blob-helper is a colorful logger tool based on [chalk][] (so you can use a
lot of colors), and can be easily integrated into [commander.js][] (so you can
use command line parameters to customized the logger's behavior).
Install
npm
npm install --save @guanghechen/blob-helperyarn
yarn add @guanghechen/blob-helper
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.
