@guanghechen/helper-blob
TypeScript icon, indicating that this package has built-in type declarations

3.0.2 • Public • Published

@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.

Readme

Keywords

Package Sidebar

Install

npm i @guanghechen/helper-blob

Weekly Downloads

0

Version

3.0.2

License

MIT

Unpacked Size

13.4 kB

Total Files

11

Last publish

Collaborators

  • lemonclown