0.1.5 • Published 7 years ago

node-download-file v0.1.5

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

node-download

npm version

使用方法

npm install node-download-file --save

File(URL, dir, filenameOptional)

var download = require('node-download-file')

download.File("http://o6httuwar.bkt.clouddn.com/2202-ntk39234.jpg","./public/", null)
.then( (result) => {
  if (result == 200) {
    console.log('下载完成')
  }
})

文件流

FileStream(URL, dir, filenameOptional)

download.FileStream("http://o6httuwar.bkt.clouddn.com/2202-ntk39234.jpg","./", null)
.then( (result) => {
  if (result == 200) {
    console.log('下载完成')
  }
})
0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago