Skip to content

afeiship/next-blob2down

Repository files navigation

next-blob2down

Download from blob.

version license size download

installation

npm install -S @jswork/next-blob2down

usage

import '@jswork/next-blob2down';

// download a png with filename
fetch('https://www.alo7.com/assest/images_cms/logo_title.png')
  .then(r=>r.blob())
  .then(res=>{
    nx.blob2down(res, { filename: 'logo.png' });
  });

license

Code released under the MIT license.