fs.createReadStream() equivalent for remote file in Node
node.js
Solution
Node is no PHP :)
Use the request module:
request('http://fromrussiawithlove.com/baby.mp3').pipe(fs.createWriteStream('song.mp3'))
Problem
Is there an equivelate method to fs.createReadStream() in Node for remote files? Using as follows throws `Unhandled 'error' event` ``` var s = fs.createReadStream('some_mp3_url'); ```