file from url node js

file from url node js

  • Category: file
  • Seed : 138
  • Leech : 65

Click Download button to get file!

const fs = require('fs'); const http = require('http'); const download = (url, dest, cb) => { const file = fs. createWriteStream(dest); const request = http. get(url, (response) => { // check if response is success if (response. statusCode !== I had to connect to a server, download a file, and store it locally. ...

Reply

Text