@gswl/filedown
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

filedownloader

安装

npm i --save @gswl/filedownloader

使用

import filedownload from "@gswl/filedownloader"

/**
 * @param downloadlink 下载链接
 * @param unzipdir 文件存放解压地址
 * */
filedownload(downloadlink, unzipdir).then(res => {
    // res: 
    // { code: 200, msg: '文件下载并解压成功' }

}).catch(err => {
    // err 
    // { code: 0, msg: '' }
})

Readme

Keywords

none

Package Sidebar

Install

npm i @gswl/filedown

Weekly Downloads

0

Version

1.0.9

License

ISC

Unpacked Size

3.99 kB

Total Files

4

Last publish

Collaborators

  • gswlwp