1.9.8 • Published 2 years ago
@guanghechen/blob-helper v1.9.8
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-helper
yarn
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.