@jswork/next-blob2file

1.0.0 • Public • Published

next-blob2file

Blob to file for next.

version license size download

installation

npm install -S @jswork/next-blob2file

usage

import '@jswork/next-blob2file';

fetch('https://dth-beta.alo7.com/alo7/ace/dsr_manager/lATPDhJzv_TUh4_OdTixz85UZwQr.amr')
  .then(res=>res.blob())
  .then(res=>{
    const file = nx.blob2file(res, 'lATPDhJzv_TUh4_OdTixz85UZwQr.amr')
    // File {name: "untitled", lastModified: 1618309936979, lastModifiedDate: ...
  });

license

Code released under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i @jswork/next-blob2file

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.79 kB

Total Files

5

Last publish

Collaborators

  • afeiship