@guanghechen/helper-blob
helper-blob
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/helper-blob
-
yarn
yarn add @guanghechen/helper-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.