@jswork/next-blob2file
v1.0.0
Published
Blob to file for next.
Downloads
4
Readme
next-blob2file
Blob to file for next.
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.