0.1.3 • Published 2 years ago
finch-get v0.1.3
finch-get
install
npm install finch-get
usage
import {getFileCB, getMD5CB, getJsonCB} from "finch-get";
getFileCB("url...", 'N:/targetFilePath',
(e) => {
if (e) {
console.log(e);
console.log("Get File Failed");
} else {
console.log("Get File DONE");
}
})
getJsonCB("url...",(e,result)=>{
if(e) console.log(e);
else console.log(result);
})
getMD5CB("FilePath...",(e,result)=>{
if(e) console.log(e);
else console.log(result);
})