### 快速下载工具
安装方法
```
npm install ktdownload
```
该库依赖于: http, 请先安装依赖
```
npm install http
```
### 使用方法
```js
    /**
     * 快速下载方法
     * @param {string} downSrc 下载地址
     * @param {string} dirName 文件夹目录
     * @param {string} fileName 文件名
     * @param {any} progress 进度回调
     * @param {any} end 结束下载
     * @param {any} failed 失败回调
     */
    startDownloadTask (downSrc, dirName,fileName, progress, end, failed)
```

例子:
```js
ktdownload.startDownloadTask("http://mirrors.aliyun.com/centos/filelist.gz ",
 "dirPath",
 "filelist.gz",
  (process)=>{
console.log("PROCESS=>" + process)
}, 
(end)=>{
    console.log("END=>" + end)
},
(err)=>{
console.log("FAILED=>" + err)
} )

```
下载进度的回调
```
PROCESS=>99%
PROCESS=>99%
PROCESS=>99%
PROCESS=>99%
PROCESS=>99%
PROCESS=>99%
PROCESS=>99%
PROCESS=>99%
PROCESS=>99%
PROCESS=>99%
PROCESS=>99%
PROCESS=>99%
PROCESS=>100%
end downloading http://mirrors.aliyun.com/centos/filelist.gz
END=>DownLoad Success
```