I'm trying to achieve it using following code as mentioned in npm-request but I get
TypeError: Object #<WriteStream> has no method 'pause'
request('https://www.google.com.np/images/srpr/logo11w.png').pipe(fs.createWriteStream('doodle.pdf'));
Cant seem to figure out, could be because of async .. is there a sync way ?