@jswork/next-blob2down

Download from blob.

Usage no npm install needed!

<script type="module">
  import jsworkNextBlob2down from 'https://cdn.skypack.dev/@jswork/next-blob2down';
</script>

README

next-blob2down

Download from blob.

version license size download

installation

npm install -S @jswork/next-blob2down

usage

import '@jswork/next-blob2down';

// download a png
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.