download_file

download file for javascript

Usage no npm install needed!

<script type="module">
  import downloadFile from 'https://cdn.skypack.dev/download_file';
</script>

README

通过浏览器下载base64位文件到本地

.引用.

npm install download_file

.js使用说明.

var download = require('download_file');
download(uri,filename);
参数 说明 类型
uri base64位数据,包含文件类型 string
filename 生成的文件名 string