Skip to content

BlackGlory/extra-blob

Repository files navigation

extra-blob

Install

npm install --save extra-blob
# or
yarn add extra-blob

API

downloadBlob

function downloadBlob(blob: Blob, filename: string): void

openFiles

function openFiles(
  options?: {
    accept?: string[]
    multiple?: boolean
  }
): Promise<FileList>

textToBlob

function textToBlob(text: string, mimeType?: string): Blob

blobToDataURL

function blobToDataURL(blob: Blob): Promise<string>