blob-converter
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

blob-converter

A tool to convert blob to arrayBuffer or string

Install

yarn add blob-converter
npm i -S blob-converter

Usage

import { convert } from 'blob-converter'
 
const arrayBuffer = await convert(blob, 'buffer')
const arrayBuffer = await convert(blob, 'arrayBuffer')
 
const binaryString = await convert(blob, 'binary')
const binaryString = await convert(blob, 'binaryString')
 
const base64 = await convert(blob, 'base64')
const base64 = await convert(blob, 'dataURL')

Readme

Keywords

Package Sidebar

Install

npm i blob-converter

Weekly Downloads

13

Version

1.0.0

License

MIT

Unpacked Size

6.63 kB

Total Files

7

Last publish

Collaborators

  • aihornmac