Created
September 11, 2016 18:10
-
-
Save drboyer/d1ab10f151753067d0d2c078dc5954cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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