Skip to content

Instantly share code, notes, and snippets.

@tanepiper
Created February 9, 2011 22:39
Show Gist options
  • Select an option

  • Save tanepiper/819483 to your computer and use it in GitHub Desktop.

Select an option

Save tanepiper/819483 to your computer and use it in GitHub Desktop.
pth = path.resolve location
fh = fs.createWriteStream(pth)
request
method: 'GET'
uri: uri
encoding: 'binary'
.pipe(fh)
pth = path.resolve location
fh = fs.createWriteStream(pth)
request
method: 'GET'
uri: uri
.pipe(fh)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment