1.0.1 • Published 4 years ago

picture_downloader_tool v1.0.1

Weekly downloads
9
License
-
Repository
github
Last release
4 years ago

picture-download-tool

USAGE

npm install picture_downloader_tool
const download = require("picture_downloader_tool")
const options  ={
    url:"https://pics7.baidu.com/feed/377adab44aed2e7387397e0fe9ee688d86d6fa33.png?token=88667e1eef153863ca89e6827d806ca3",
     dist:process.cwd(),
    fileName:"1.jpg"
}
download.downloadImage(options)

API

const options = {
  url: "", //Picture URL,
  dist: "", //download dir,The default is /public/image/
  fileName: "", // download imgae name, The default imageName YYYYMMDDHHmmss+random
};
download.downloadImage(options);