Skip to content

Instantly share code, notes, and snippets.

@drboyer
Created September 11, 2016 18:10
Show Gist options
  • Save drboyer/d1ab10f151753067d0d2c078dc5954cf to your computer and use it in GitHub Desktop.
Save drboyer/d1ab10f151753067d0d2c078dc5954cf to your computer and use it in GitHub Desktop.
function getDroughtMonStream(outStream) {
var pass = new stream.PassThrough()
req('http://droughtmonitor.unl.edu/data/shapefiles_m/USDM_' + dates.getDroughtMonDate() + '_M.zip')
.pipe(pass)
toJSON(pass).pipe(outStream)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment